@charset "UTF-8";

.sidebar {
  color: #3f3a3a;
}

.sidebar .widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 32px;
  padding: 0;
}

.sidebar .cw-sidebar-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(219, 112, 139, 0.12);
  overflow: hidden;
}

.sidebar .cw-sidebar-title {
  align-items: center;
  background: #df7189;
  color: #fff;
  display: flex;
  font-size: 20px;
  font-weight: 700;
  gap: 12px;
  line-height: 1.35;
  margin: 0;
  padding: 18px 22px;
}

.sidebar .cw-sidebar-title .fa {
  flex: 0 0 auto;
  font-size: 20px;
}

.sidebar .cw-sidebar-body {
  padding: 22px;
}

.sidebar .cw-sidebar-body p {
  color: #5f5959;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.sidebar .cw-sidebar-button {
  align-items: center;
  background: #df7189;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  min-height: 50px;
  padding: 12px 16px;
  text-decoration: none;
}

.sidebar .cw-sidebar-search form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 52px;
}

.sidebar .cw-sidebar-search input[type="search"] {
  appearance: none;
  background: #fff;
  border: 1px solid #ead5d9;
  border-radius: 999px;
  color: #3f3a3a;
  font-size: 14px;
  min-height: 30px;
  outline: 0;
  padding: 5px 14px;
  width: 100%;
}

.sidebar .cw-sidebar-search button {
  align-items: center;
  appearance: none;
  background: #df7189;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 30px;
  justify-content: center;
  padding: 0;
}

.sidebar .cw-sidebar-popular ol {
  counter-reset: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .cw-sidebar-popular li {
  border-bottom: 1px solid #f1e4e7;
  margin: 0;
  padding: 14px 0;
}

.sidebar .cw-sidebar-popular li:first-child {
  padding-top: 0;
}

.sidebar .cw-sidebar-popular li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar .cw-sidebar-popular a {
  align-items: center;
  color: #3f3a3a;
  display: grid;
  gap: 12px;
  grid-template-columns: 30px 64px 1fr;
  text-decoration: none;
}

.sidebar .cw-sidebar-rank {
  align-items: center;
  background: #df7189;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.sidebar .cw-sidebar-thumb {
  background: #ddd;
  border-radius: 5px;
  display: block;
  height: 52px;
  overflow: hidden;
  width: 64px;
}

.sidebar .cw-sidebar-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sidebar .cw-sidebar-post-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.sidebar .widget:not(:has(.cw-sidebar-card)) {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(219, 112, 139, 0.12);
  overflow: hidden;
}

.sidebar .widget:not(:has(.cw-sidebar-card)) > .widget-title,
.sidebar .widget:not(:has(.cw-sidebar-card)) > h2,
.sidebar .widget:not(:has(.cw-sidebar-card)) > h3 {
  background: #df7189;
  color: #fff;
  font-size: 20px;
  margin: 0;
  padding: 18px 22px;
}

@media screen and (max-width: 1023px) {
  .sidebar .cw-sidebar-card {
    border-radius: 8px;
  }
}

/* ============================================================
   サイドバーの配色を整理
   見出しが3つとも同じ濃さのピンクのベタ塗りで、縦に並ぶと
   縞模様になり、記事本文より目立っていた。
   「お問い合わせ」だけを主役に残し、他は静かな見た目にする。
   ============================================================ */

/* 既定は控えめ：白地に色文字＋左のアクセント */
.sidebar .cw-sidebar-title {
  background: #fff;
  border-bottom: 1px solid #f3e4e8;
  color: #3f3a3a;
  font-size: 18px;
  padding: 18px 22px 14px;
  position: relative;
}

.sidebar .cw-sidebar-title::before {
  background: #df7189;
  border-radius: 2px;
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  top: 18px;
  width: 4px;
}

.sidebar .cw-sidebar-title .fa {
  color: #df7189;
}

/* お問い合わせだけは行動を促したいので、従来どおり塗る */
.sidebar .cw-sidebar-contact .cw-sidebar-title {
  background: #df7189;
  border-bottom: none;
  color: #fff;
  padding: 18px 22px;
}

.sidebar .cw-sidebar-contact .cw-sidebar-title::before {
  content: none;
}

.sidebar .cw-sidebar-contact .cw-sidebar-title .fa {
  color: #fff;
}

/* 影も一段弱め、本文より前に出ないようにする */
.sidebar .cw-sidebar-card {
  box-shadow: 0 4px 14px rgba(66, 58, 50, 0.08);
}

.sidebar .cw-sidebar-contact {
  box-shadow: 0 8px 22px rgba(219, 112, 139, 0.16);
}

/* ------------------------------------------------------------
   テーマ側で直接出しているカード（広告枠・特別対談・コラム・
   イベント・協力企業紹介）の間隔。

   ウィジェットの場合は .sidebar .widget の margin-bottom が効くが、
   直書きしたカードには .widget の外枠が無いため、ここで同じ値を与える。
   ------------------------------------------------------------ */
.sidebar > .cw-sidebar-card {
  margin-bottom: 32px;
}

/* ------------------------------------------------------------
   記事リスト（特別対談・コラム・イベント・協力企業紹介）
   幅が狭いので、サムネイル＋タイトルだけの簡潔な並びにする。
   ------------------------------------------------------------ */
.cw-sidebar-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cw-sidebar-posts li + li {
  border-top: 1px solid #efe7db;
  margin-top: 14px;
  padding-top: 14px;
}

.cw-sidebar-posts a {
  align-items: flex-start;
  color: var(--color_charcoal);
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
  text-decoration: none;
}

.cw-sidebar-posts a:hover .cw-sidebar-post-title {
  color: var(--color_coral);
}

.cw-sidebar-posts .cw-sidebar-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  display: block;
  overflow: hidden;
}

.cw-sidebar-posts .cw-sidebar-thumb-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cw-sidebar-posts .cw-sidebar-post-title {
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: normal;
  word-break: normal;
}

.cw-sidebar-more {
  margin: 16px 0 0;
  text-align: right;
}

.cw-sidebar-more a {
  color: var(--color_coral);
  font-size: 14px;
  font-weight: 700;
}

.cw-sidebar-more a::after {
  content: "›";
  margin-left: 4px;
}

/* 広告枠はカードの体裁を外す。
   白い枠と余白を付けると、記事ブロックと同じ「コンテンツ」に見えてしまう。
   バナー自体が角丸と影を持っているので、そのまま置くだけでよい。 */
.sidebar > .cw-sidebar-card.cw-sidebar-ad {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.sidebar .cw-sidebar-ad .cw-sidebar-body {
  padding: 0;
}

.sidebar .cw-sidebar-ad .ad-slot {
  margin: 0;
}

/* PRであることが分かるラベル */
.cw-sidebar-pr-label {
  background: var(--color_charcoal);
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: 8px;
  padding: 3px 7px;
}

/* ============================================================
   スライドインメニューの中身
   スマホ下部の固定メニュー「メニュー」を押すと開く一覧。
   Cocoonの既定はサイドバーウィジェットを出す作りだが、
   このサイトはウィジェットを使っていないので中身が空だった。
   inc/mobile-footer.php で流し込んだ一覧の見た目をここで作る。
   ============================================================ */
.cw-drawer {
  margin: 0;
  padding: 0;
  text-align: left;
}

.cw-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cw-drawer-menu__item {
  border-bottom: 1px solid #eee6dc;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cw-drawer-menu__link {
  align-items: center;
  color: #4a4641;
  display: flex;
  font-size: 18px;
  font-weight: 500;
  justify-content: space-between;
  line-height: 1.5;
  min-height: 58px;
  padding: 12px 8px;
  text-decoration: none;
}

.cw-drawer-menu__link::after {
  border-right: 2px solid #c6748a;
  border-top: 2px solid #c6748a;
  content: "";
  display: block;
  flex: 0 0 auto;
  height: 8px;
  margin-left: 12px;
  transform: rotate(45deg);
  width: 8px;
}

.cw-drawer-menu--sub {
  margin-top: 20px;
}

.cw-drawer-menu--sub .cw-drawer-menu__item {
  border-bottom: none;
}

.cw-drawer-menu--sub .cw-drawer-menu__link {
  color: #8a827a;
  font-size: 15px;
  font-weight: 400;
  min-height: 40px;
  padding: 8px;
}

.cw-drawer-menu--sub .cw-drawer-menu__link::after {
  display: none;
}
