/* Y'Caring フロントページ 幅制限解除 */
.home .wp-block-html { margin: 0 !important; padding: 0 !important; }
.home .wp-block-post-content .wp-block-html { max-width: 100% !important; }
.home .yc-hero { margin-left: calc(-50vw + 50%) !important; margin-right: calc(-50vw + 50%) !important; width: 100vw !important; }
.home .yc-s3__grid,
.home .yc-s5__grid,
.home .yc-s6__grid { width: 100% !important; }

/* ヒーローコンテンツ幅を確保 */
.home .yc-hero__content { max-width: 50% !important; }

/* 背景が全幅に見えるように */
.home .yc-s2,
.home .yc-s3,
.home .yc-s4,
.home .yc-s5,
.home .yc-s6 {
  width: 100% !important;
}

/* About    */
.page-id-1 .wp-block-post-title { display: none !important; }
.page-id-1 .wp-block-post-content { padding-top: 0 !important; }
.page-id-1 .yc-about-page { margin-top: 0 !important; }

/* About    */




/* About ページ — 幅制限解除（改善版） */
.page-id-1 .wp-block-post-content.entry-content,
.page-id-1 .entry-content.wp-block-post-content { max-width: 100% !important; width: 100% !important; }
.page-id-1 .yc-about-page { width: 100% !important; }

/* =========================
   Y'Caring Blog/Information Page
========================= */

.yc-info-page {
  font-family: 'Noticia Text', serif;
  color: #270c22;
  background: #f2f2ef;
}

.yc-info-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* ===== 見出しエリア ===== */
.yc-info-heading {
  text-align: center;
  margin-bottom: 64px;
}

.yc-info-heading h1 {
  margin: 0;
  font-family: 'Cormorant', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #554e49;
}

/* ダイヤモンド装飾をラベンダーとベージュに変更 */
.yc-info-diamond {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.yc-info-diamond span {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  display: block;
}

.yc-info-diamond span:first-child {
  background: #b8a8d8;
}

.yc-info-diamond span:last-child {
  background: #d2c6bc;
}

.yc-info-diamond.small {
  margin-top: 16px;
  margin-bottom: 32px;
}

.yc-info-diamond.small span {
  width: 10px;
  height: 10px;
}

/* ===== 2カラムレイアウト ===== */
.yc-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 80px;
  align-items: start;
}

/* ===== 投稿一覧 ===== */
.yc-info-posts {
  min-width: 0;
}

.yc-info-posts .wp-block-post-template {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.yc-info-posts .wp-block-post {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: auto auto;
  gap: 0 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid #d2c6bc;
}

.yc-info-posts .wp-block-post-featured-image {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  width: 120px;
  height: 76px;
  overflow: hidden;
  border-radius: 2px;
}

.yc-info-posts .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yc-info-posts .wp-block-post-date {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #9a8cbf;
  font-family: 'Cormorant', serif;
}

.yc-info-posts .wp-block-post-title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  font-family: 'Noticia Text', serif;
  color: #270c22;
}

.yc-info-posts .wp-block-post-title a {
  color: #270c22;
  text-decoration: none;
  transition: color 0.2s;
}

.yc-info-posts .wp-block-post-title a:hover {
  color: #9a8cbf;
}

/* ===== サイドバー ===== */
.yc-info-sidebar {
  padding-top: 0;
}

.yc-sidebar-block {
  margin-bottom: 52px;
}

.yc-sidebar-block h2 {
  margin: 0;
  text-align: center;
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #554e49;
}

/* ===== 検索ブロック ===== */
.yc-info-sidebar .wp-block-search {
  margin: 0;
}

.yc-info-sidebar .wp-block-search__inside-wrapper {
  border: 1px solid #d2c6bc;
  background: #fff;
  padding: 0;
  height: 42px;
  display: flex;
  align-items: center;
  border-radius: 2px;
}

.yc-info-sidebar .wp-block-search__input {
  border: none;
  padding: 0 12px;
  height: 40px;
  font-size: 13px;
  color: #270c22;
  background: transparent;
  font-family: 'Noticia Text', serif;
}

.yc-info-sidebar .wp-block-search__button {
  margin: 0;
  width: 42px;
  height: 40px;
  border: none;
  background: transparent;
  color: #9a8cbf;
  padding: 0;
  font-size: 0;
  position: relative;
  cursor: pointer;
}

.yc-info-sidebar .wp-block-search__button::before {
  content: "⌕";
  font-size: 22px;
  line-height: 1;
}

/* ===== カテゴリー一覧 ===== */
.yc-info-sidebar .wp-block-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yc-info-sidebar .wp-block-categories-list li {
  border-bottom: 1px solid #d2c6bc;
  margin: 0;
}

.yc-info-sidebar .wp-block-categories-list a {
  display: block;
  padding: 13px 4px;
  color: #554e49;
  text-decoration: none;
  font-size: 13px;
  font-family: 'Noticia Text', serif;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.yc-info-sidebar .wp-block-categories-list a:hover {
  color: #9a8cbf;
}

/* ===== ページネーション ===== */
.yc-info-posts .wp-block-query-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: 'Cormorant', serif;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.yc-info-posts .wp-block-query-pagination a,
.yc-info-posts .wp-block-query-pagination span {
  color: #554e49;
  text-decoration: none;
  transition: color 0.2s;
}

.yc-info-posts .wp-block-query-pagination a:hover {
  color: #9a8cbf;
}

/* ===== ページ全体の背景調整 ===== */
.yc-info-page {
  background: #f2f2ef;
  padding: 0;
}

/* ===== スマホ対応 ===== */

@media (max-width: 900px) {
  .yc-info-main {
    padding: 56px 20px 80px;
  }

  .yc-info-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .yc-info-sidebar {
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .yc-info-heading {
    margin-bottom: 40px;
  }

  .yc-info-posts .wp-block-post {
    grid-template-columns: 88px 1fr;
    gap: 0 16px;
    padding: 18px 0;
  }

  .yc-info-posts .wp-block-post-featured-image {
    width: 88px;
    height: 58px;
  }

  .yc-info-posts .wp-block-post-title {
    font-size: 14px;
  }

  .yc-info-sidebar .wp-block-categories-list a {
    font-size: 14px;
  }
}

/* === Blog page ID 998 === */

/* Hide page title */
/* Hide page title only, not post titles */
.page-id-998 .wp-site-blocks > .wp-block-post-title {
  display: none !important;
}

/* Show post titles within the list */
.page-id-998 .yc-info-posts .wp-block-post-title {
  display: block !important;
}

/* 2-column layout */
.page-id-998 .entry-content {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 0 80px !important;
  padding: 40px 50px 80px !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

/* Header full width */
.page-id-998 .entry-content > .yc-info-page {
  flex: 0 0 100% !important;
  width: 100% !important;
}

/* Post list: left column */
.page-id-998 .yc-info-posts {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

/* Sidebar: right column */
.page-id-998 .yc-info-sidebar {
  flex: 0 0 260px !important;
  width: 260px !important;
}

/* Sidebar block heading */
.page-id-998 .yc-info-sidebar .yc-sidebar-block h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

/* Search block */
.page-id-998 .yc-info-sidebar .wp-block-search__inside-wrapper {
  border: 1px solid #CFC8C1;
  height: 42px;
  display: flex;
  align-items: center;
}

.page-id-998 .yc-info-sidebar .wp-block-search__input {
  border: none !important;
  padding: 0 12px !important;
  height: 40px;
  font-size: 13px;
  color: #554E49;
  background: transparent;
}

/* Category list */
.page-id-998 .yc-info-sidebar .wp-block-categories {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page-id-998 .yc-info-sidebar .wp-block-categories li {
  border-bottom: 1px solid #D2C6BC;
  margin: 0 !important;
}

.page-id-998 .yc-info-sidebar .wp-block-categories a {
  display: block;
  padding: 13px 0;
  color: #554E49;
  text-decoration: none;
  font-size: 14px;
}

.page-id-998 .yc-info-sidebar .wp-block-categories a:hover {
  color: #8FA6D2;
}

/* Blog page heading area */
.page-id-998 .yc-info-page {
  background: transparent;
}