/* ===========================================================
   コラム専用 2カラムレイアウト / 右サイドバー (2026-11-29)
   - /blog/ 一覧と /blog/{slug}/ 記事詳細だけに適用
   - NEWS / WORKS / TOP / ADMIN の既存デザインを変更しない
   =========================================================== */
body.blog-view #main { background: #fdf9fb; }

.jo-blog-layout {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: start;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) 0 clamp(76px, 8vw, 120px);
}

/* 既存のセンター寄せ指定と max-width をこのレイアウト内だけで上書き */
[data-page="blog"] .jo-blog-layout > .jo-blog-main,
[data-page="detail"] .jo-blog-layout > .jo-blog-main,
#detail.detail-blog.jo-blog-main {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 32px clamp(22px, 3vw, 36px) 44px;
  background: #fff;
  border: 1px solid #f5e9ef;
  border-radius: 17px;
  box-shadow: 0 6px 26px rgba(65, 30, 48, .045);
}
[data-page="blog"] .jo-blog-layout > .jo-blog-main > h1 {
  margin: 2px 0 10px;
  font-size: clamp(29px, 3vw, 38px);
}
[data-page="blog"] .jo-blog-layout > .jo-blog-main > .lead { margin-bottom: 27px; }
[data-page="blog"] .jo-blog-layout > .jo-blog-main > .eyebrow { font-size: 12px; }

/* コラム一覧は余裕のある2列。3列固定の既存スタイルを限定的に変更 */
[data-page="blog"] .jo-blog-layout [data-collection="blog"].grid.three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}
[data-page="blog"] .jo-blog-layout .card.blog {
  height: 100%;
  border-radius: 12px;
  border-color: #efe0e7;
  box-shadow: 0 4px 14px rgba(70, 38, 55, .035);
}
/* 文章量が違っても、各カードのカテゴリと「記事を読む」を同じ最下段へ揃える */
[data-page="blog"] .jo-blog-layout .card.blog .card-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 16px 17px 19px;
}
[data-page="blog"] .jo-blog-layout .card.blog h3 {
  margin: 8px 0 9px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: #30242e;
}
[data-page="blog"] .jo-blog-layout .card.blog time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #967e8b;
  letter-spacing: .035em;
}
[data-page="blog"] .jo-blog-layout .card.blog .jo-blog-card-intro {
  margin: 0;
  color: #756672;
  font-size: 12px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-page="blog"] .jo-blog-layout .card.blog .card-meta {
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-top: auto;
  padding-top: 14px;
}
[data-page="blog"] .jo-blog-layout .card.blog .card-meta > * { white-space: nowrap; }
[data-page="blog"] .jo-blog-layout .card.blog .tag { font-size: 10px; }
.jo-blog-readmore { color: #bf1c67; font-size: 11px; font-weight: 800; }
.jo-blog-card-noimage {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(125deg, #ffe7f2, #fbd3e6);
  color: #a52662;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .14em;
}
.jo-blog-filter-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  background: #fff2f7;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 21px;
  color: #723b55;
  font-size: 12px;
  font-weight: 700;
}
.jo-blog-filter-summary a { color: #c0075c; text-decoration: underline; }
.jo-blog-empty {
  grid-column: 1 / -1;
  padding: 35px 15px;
  color: #6a5664;
  text-align: center;
}
.jo-blog-empty p { margin-bottom: 12px; }
.jo-blog-empty a { color: #c1005c; font-weight: 800; }

/* 記事詳細：メインの記事ボディは自然な一列のまま */
.jo-blog-layout--detail #detail.detail-blog { padding-top: 35px; }
.jo-blog-layout--detail #detail .public-detail-header { max-width: 100%; }
.jo-blog-layout--detail #detail .public-detail-header h1 { font-size: clamp(25px, 2.5vw, 35px); }
.jo-blog-layout--detail #detail .public-detail-content { font-size: clamp(14px, 1.3vw, 16px); }
.jo-blog-layout--detail #detail .public-detail-cover {
  border-radius: 12px;
  padding: 7px;
  margin-bottom: 27px;
}
.jo-blog-layout--detail #detail .public-detail-excerpt { font-size: 14px; }

/* 右側：検索フォーム、注目記事、カテゴリ、SNS */
.jo-blog-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
.jo-blog-sr-only {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.jo-blog-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 45px;
  background: #fff;
  border: 1px solid #eae4ec;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 5px 17px rgba(46, 32, 46, .045);
}
.jo-blog-search input {
  flex: 1;
  width: 0;
  min-width: 0;
  align-self: stretch;
  margin: 0; /* 共通フォームCSSの margin-top: 8px を打ち消し上下中央に配置 */
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: #33283a;
  background: transparent;
  font: 500 13px "Noto Sans JP", sans-serif;
}
.jo-blog-search input::placeholder { color: #a4a0aa; }
.jo-blog-search:focus-within { outline: 2px solid #f8add1; outline-offset: 2px; }
.jo-blog-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  margin: 0;
  border: 0;
  border-radius: 0 9px 9px 0;
  color: #fff;
  background: #fc1580;
}
.jo-blog-search button:hover { background: #d71169; }
.jo-blog-widget {
  min-width: 0;
  padding: 21px 18px 20px;
  background: #fff;
  border: 1px solid #f1e8ee;
  border-radius: 13px;
  box-shadow: 0 6px 20px rgba(70, 40, 56, .035);
}
.jo-blog-widget .jo-blog-widget-kicker {
  margin: 0 0 3px;
  color: #fb1680;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: .12em;
}
.jo-blog-widget > h2 {
  margin: 0 0 15px;
  color: #241e30;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0;
}
.jo-blog-recommend, .jo-blog-categories {
  padding: 0;
  margin: 0;
  list-style: none;
}
.jo-blog-recommend li + li { border-top: 1px solid #f0edf1; }
.jo-blog-recommend-link {
  display: grid;
  grid-template-columns: 12px 53px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  text-decoration: none;
}
.jo-blog-recommend-link:hover,
.jo-blog-recommend-link:focus-visible { text-decoration: none; }
.jo-blog-recommend-link:hover .jo-blog-recommend-title,
.jo-blog-recommend-link:focus-visible .jo-blog-recommend-title { color: #d40068; text-decoration: none; }
.jo-blog-rank {
  color: #ff1479;
  text-align: center;
  font: italic 800 16px/1 Arial, sans-serif;
}
.jo-blog-recommend-thumb {
  width: 53px;
  height: 53px;
  object-fit: cover;
  border-radius: 7px;
  background: #ffe6f1;
}
.jo-blog-thumb-empty { display: grid; place-items: center; color: #bf256b; font-size: 22px; font-weight: 900; }
.jo-blog-recommend-copy { display: block; min-width: 0; }
.jo-blog-recommend-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #332b3c;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
  word-break: break-word;
}
.jo-blog-recommend-copy time {
  display: block;
  margin-top: 4px;
  color: #9a8d9b;
  font-size: 10px;
  line-height: 1.3;
}
.jo-blog-categories li + li { border-top: 1px solid #f0edf1; }
.jo-blog-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 2px;
  color: #3b3142;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.jo-blog-categories a:hover,
.jo-blog-categories a.is-active { color: #f01479; }
.jo-blog-count {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 23px;
  min-height: 23px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #f4f2f7;
  color: #8d8098;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}
.jo-blog-categories a.is-active .jo-blog-count { background: #fff0f6; color: #df176e; }
.jo-blog-widget--social .jo-blog-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px 8px;
  border: 1px solid #ecdce4;
  border-radius: 9px;
  color: #3b3340;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.jo-blog-social-link > span[aria-hidden="true"] { font-size: 14px; }
.jo-blog-social-link:hover { background: #fff2f7; color: #d40068; }

@media (max-width: 1000px) {
  .jo-blog-layout { grid-template-columns: minmax(0, 1fr) 248px; gap: 20px; }
  .jo-blog-widget { padding: 19px 14px; }
  [data-page="blog"] .jo-blog-layout [data-collection="blog"].grid.three { gap: 13px; }
}
@media (max-width: 800px) {
  .jo-blog-layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(690px, calc(100% - 32px));
    gap: 25px;
    padding-top: 18px;
  }
  .jo-blog-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .jo-blog-search { grid-column: 1 / -1; }
  .jo-blog-widget--social { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .jo-blog-layout { padding-top: 15px; gap: 20px; padding-bottom: 65px; }
  [data-page="blog"] .jo-blog-layout > .jo-blog-main,
  [data-page="detail"] .jo-blog-layout > .jo-blog-main,
  #detail.detail-blog.jo-blog-main { padding: 24px 18px 30px; }
  [data-page="blog"] .jo-blog-layout [data-collection="blog"].grid.three { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .jo-blog-layout--detail #detail .public-detail-header h1 { font-size: clamp(23px, 6vw, 29px); }
  .jo-blog-sidebar { grid-template-columns: minmax(0, 1fr); }
  .jo-blog-search, .jo-blog-widget--social { grid-column: auto; }
  .jo-blog-widget { padding: 20px; }
  .jo-blog-recommend-link { grid-template-columns: 16px 60px minmax(0, 1fr); gap: 12px; }
  .jo-blog-recommend-thumb { width: 60px; height: 60px; }
  .jo-blog-recommend-title { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .jo-blog-search button { transition: none; }
}
