@charset "UTF-8";
/* ============================================================
   blog-custom.css — ブログ一覧 / 記事詳細ページ固有
============================================================ */

/* ---------- 記事カード（一覧） ---------- */
.ace-post-list { display: flex; flex-direction: column; gap: 20px; }
.ace-post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ace-post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); opacity: 1; }
.ace-pc-thumb { height: 100%; overflow: hidden; }
.ace-pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.ace-post-card:hover .ace-pc-thumb img { transform: scale(1.06); }
.ace-pc-body { padding: 20px 22px 20px 0; }
.ace-pc-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.ace-pc-tag {
  font-size: 1.15rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
  background: rgba(177,60,74,0.1); color: var(--red);
}
.ace-pc-date { font-family: var(--serif); font-size: 1.25rem; color: var(--brown-deep); }
.ace-pc-title { font-size: 1.75rem; font-weight: 700; line-height: 1.5; color: var(--ink); margin-bottom: 8px; }
.ace-pc-excerpt { font-size: 1.4rem; color: var(--ink-soft); line-height: 1.85; }

@media (max-width: 639px) {
  .ace-post-card { grid-template-columns: 1fr; }
  .ace-pc-thumb { height: auto; aspect-ratio: 16 / 9; }
  .ace-pc-body { padding: 0 20px 20px; }
}

/* ---------- 一覧ページャ（CMS出力：.pages / page_prev / page_next） ---------- */
.ace-post-list .pages {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-top: 40px;
}
.ace-post-list .pages .page_prev,
.ace-post-list .pages .page_next { display: inline-flex; }
.ace-post-list .pages a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}
.ace-post-list .pages a:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  opacity: 1;
}

/* ---------- サイドバー ---------- */
.ace-sidebar { display: flex; flex-direction: column; gap: 24px; }
.ace-sidebar-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.ace-sidebar-box h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  font-weight: 700;
}
.ace-cat-list { display: flex; flex-direction: column; }
.ace-cat-li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 1.4rem;
  color: var(--ink-soft);
}
.ace-cat-li:last-child { border-bottom: none; }
.ace-cat-li a { color: var(--ink-soft); }
.ace-cat-li a:hover { color: var(--red); opacity: 1; }
.ace-cat-li span { font-family: var(--serif); font-size: 1.2rem; color: var(--brown-deep); }
.ace-recent-li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: inherit; }
.ace-recent-li:last-child { border-bottom: none; }
.ace-recent-li:hover { opacity: 1; }
.ace-recent-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.ace-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ace-recent-meta { display: flex; flex-direction: column; gap: 5px; }
.ace-recent-meta .d { font-family: var(--serif); font-size: 1.15rem; color: var(--brown-deep); }
.ace-recent-meta .t { font-size: 1.1rem; font-weight: 400; line-height: 1.45; color: var(--ink-soft); }
.ace-recent-meta .ex {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.ace-recent-li:hover .t { color: var(--red); }
.ace-blog-line {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
}
.ace-blog-line h4 { color: #fff; font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 1.6rem; margin-bottom: 8px; }
.ace-blog-line p { font-size: 1.35rem; opacity: 0.92; margin-bottom: 18px; line-height: 1.8; text-align: left; }
.ace-blog-line .ace-line-btn { background: #fff; color: #06a94c; box-shadow: none; }

/* ---------- 記事詳細 ---------- */
.ace-article-hero-img {
  aspect-ratio: 16 / 8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}
.ace-article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.ace-article-body { font-size: 1.6rem; line-height: 2.05; color: var(--ink); }
.ace-article-body h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 40px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--red);
  line-height: 1.5;
}
.ace-article-body p { margin-bottom: 22px; color: var(--ink-soft); }
.ace-fig { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 28px 0; }
.ace-fig img { width: 100%; height: 100%; object-fit: cover; }
.ace-article-line {
  background: linear-gradient(135deg, var(--beige), var(--cream));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  text-align: center;
  margin: 40px 0;
}
.ace-article-line h3 { font-size: 1.8rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; line-height: 1.6; }
.ace-article-line .ace-line-btn { margin: 6px auto 0; }

/* 記事ページャ（前後記事リンク／CMS出力を中央寄せ） */
.ace-article-pager { margin: 48px 0 8px; }
/* CMSは #cms-blog-entry-detail-4-area の中にリンクを挿入するため、挿入先（および内側のul/div）を中央フレックスに */
#cms-blog-entry-detail-4-area,
#cms-blog-entry-detail-4-area > div,
#cms-blog-entry-detail-4-area ul,
#cms-blog-entry-detail-4-area ol {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
#cms-blog-entry-detail-4-area li { list-style: none; }
#cms-blog-entry-detail-4-area a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 24px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}
#cms-blog-entry-detail-4-area a:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  opacity: 1;
}

/* 関連記事（共通 .grid-3 と組み合わせ） */
.ace-rel-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ace-rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); opacity: 1; }
.ace-rc-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.ace-rc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ace-rc-body { padding: 16px 18px 20px; }
.ace-rc-tag { font-size: 1.1rem; font-weight: 700; color: var(--red); }
.ace-rc-title { font-size: 1.45rem; font-weight: 700; line-height: 1.5; color: var(--ink); margin-top: 6px; }
