@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* 恋愛相談室: 固定ページ（掲示板・規約など）では投稿日を表示しない */
.page .date-tags {
  display: none;
}

/* ============================================================
 * 恋愛相談室: デザイン（2026-10-15追加）
 * 配色：コーラルピンク（#e8607a）＋クリーム背景
 * ============================================================ */
:root {
  --lac-main: #e8607a;
  --lac-main-dark: #d04764;
  --lac-cream: #fff8f5;
  --lac-line: #f6dcd8;
  --lac-text: #3d3535;
  --lac-sub: #8a7f7f;
}
body { background: var(--lac-cream); }

/* トップページ：Cocoonの見出しとwpForoの標準一覧は隠し、独自レイアウトを見せる */
.home .entry-title,
.home #wpforo { display: none; }

.lac-home { color: var(--lac-text); }
.lac-sp { display: none; }

/* ヒーロー */
.lac-hero {
  text-align: center;
  background: linear-gradient(135deg, #ffe3e8 0%, #fff3e6 100%);
  border-radius: 20px;
  padding: 40px 24px 32px;
  margin-bottom: 36px;
}
.lac-hero-eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--lac-main);
  font-size: .85em;
  font-weight: bold;
  border-radius: 999px;
  padding: 4px 16px;
  margin: 0 0 14px;
}
.lac-hero-title {
  font-size: 1.7em;
  line-height: 1.5;
  margin: 0 0 12px;
  border: none;
  background: none;
  padding: 0;
  color: var(--lac-text);
}
.lac-hero-lead { font-size: .95em; line-height: 1.8; margin: 0 auto 22px; max-width: 34em; }
.lac-hero-stats { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.lac-hero-stats div {
  background: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  min-width: 96px;
  box-shadow: 0 2px 8px rgba(232, 96, 122, .12);
}
.lac-hero-stats strong { display: block; font-size: 1.4em; color: var(--lac-main); line-height: 1.3; }
.lac-hero-stats span { font-size: .78em; color: var(--lac-sub); }
.lac-cta {
  display: inline-block;
  background: var(--lac-main);
  color: #fff !important;
  font-weight: bold;
  font-size: 1.1em;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 14px 48px;
  box-shadow: 0 4px 0 var(--lac-main-dark);
  transition: transform .15s, box-shadow .15s;
}
.lac-cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--lac-main-dark); }
.lac-hero-note { font-size: .78em; color: var(--lac-sub); margin: 14px 0 0; }
.lac-hero-note a { color: var(--lac-main); }

/* セクション見出し */
.lac-section { margin-bottom: 36px; }
.lac-section-title {
  font-size: 1.15em;
  border: none !important;
  background: none !important;
  padding: 0 0 0 14px !important;
  margin: 0 0 16px !important;
  position: relative;
  color: var(--lac-text);
}
.lac-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: .2em; bottom: .2em;
  width: 5px;
  border-radius: 3px;
  background: var(--lac-main);
}

/* カテゴリタイル */
.lac-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lac-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 2px solid var(--lac-line);
  border-radius: 14px;
  padding: 14px 8px 12px;
  text-decoration: none !important;
  color: var(--lac-text) !important;
  transition: border-color .15s, transform .15s;
}
.lac-cat:hover { border-color: var(--lac-c); transform: translateY(-2px); }
.lac-cat-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4em;
  background: color-mix(in srgb, var(--lac-c) 18%, #fff);
}
.lac-cat-name { font-size: .82em; font-weight: bold; text-align: center; line-height: 1.4; }
.lac-cat-count { font-size: .72em; color: var(--lac-sub); }

/* 新着の相談カード */
.lac-cards { display: flex; flex-direction: column; gap: 12px; }
.lac-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--lac-line);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none !important;
  color: var(--lac-text) !important;
  transition: box-shadow .15s, transform .15s;
}
.lac-card:hover { box-shadow: 0 6px 18px rgba(232, 96, 122, .15); transform: translateY(-2px); }
.lac-card-avatar {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6em;
  color: #fff;
}
.lac-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lac-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lac-tag {
  font-size: .72em;
  font-weight: bold;
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--lac-c);
  background: color-mix(in srgb, var(--lac-c) 14%, #fff);
}
.lac-tag-open { --lac-c: #2e9e6b; }
.lac-card-title { font-weight: bold; font-size: 1.02em; line-height: 1.5; color: var(--lac-main-dark); }
.lac-card-excerpt { font-size: .86em; line-height: 1.7; color: #5d5555; }
.lac-card-meta { display: flex; gap: 14px; font-size: .78em; color: var(--lac-sub); flex-wrap: wrap; }
.lac-more { text-align: center; margin: 18px 0 0; }
.lac-more a {
  display: inline-block;
  border: 2px solid var(--lac-main);
  color: var(--lac-main) !important;
  border-radius: 999px;
  padding: 8px 28px;
  font-weight: bold;
  text-decoration: none !important;
}

/* スマホ */
@media (max-width: 600px) {
  .lac-sp { display: inline; }
  .lac-hero { padding: 28px 16px 24px; border-radius: 16px; }
  .lac-hero-title { font-size: 1.35em; }
  .lac-cta { padding: 13px 32px; }
  .lac-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lac-cat-name { font-size: .72em; }
  .lac-card { padding: 14px; gap: 10px; }
  .lac-card-avatar { flex-basis: 42px; width: 42px; height: 42px; font-size: 1.3em; }
}

/* Cocoonの見出し装飾を打ち消す（2026-10-15） */
.article h2.lac-hero-title {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  font-size: 1.7em;
}
@media (max-width: 600px) {
  .article h2.lac-hero-title { font-size: 1.35em; }
}

/* サイドバーのボックスをカード風に（2026-10-15） */
#sidebar .lac-side-box {
  background: #fff;
  border: 1px solid var(--lac-line);
  border-radius: 14px;
  padding: 16px 18px;
}
#sidebar .lac-side-box > p:first-child {
  color: var(--lac-main-dark);
  border-bottom: 2px solid var(--lac-line);
  padding-bottom: 6px;
}
#sidebar .lac-side-box ul { list-style: none; padding: 0; margin: 0; }
#sidebar .lac-side-box li { border-bottom: 1px dashed var(--lac-line); }
#sidebar .lac-side-box li:last-child { border-bottom: none; }
#sidebar .lac-side-box li a { display: block; padding: 8px 4px; color: var(--lac-text); text-decoration: none; font-size: .9em; }
#sidebar .lac-side-box li a::before { content: "›"; color: var(--lac-main); margin-right: 8px; font-weight: bold; }
#sidebar .lac-side-box li a:hover { color: var(--lac-main); }

/* ============================================================
 * 恋愛相談室: カテゴリ内の相談一覧をカード型に（2026-10-15追加）
 * wpForo Q&Aレイアウト（.wpfl-3）をトップページのカードに合わせる
 * ============================================================ */

/* カテゴリの見出し部分 */
#wpforo #wpforo-wrap .wpf-head-bar {
  background: linear-gradient(135deg, #ffe3e8 0%, #fff3e6 100%);
  border: none;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
#wpforo #wpforo-wrap #wpforo-title { color: var(--lac-text); font-weight: bold; }
#wpforo #wpforo-wrap #wpforo-description { color: #5d5555; }
#wpforo #wpforo-wrap .wpf-head-bar .wpf-button {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: bold;
  box-shadow: 0 3px 0 var(--lac-main-dark);
}

/* 一覧：表の見出し行は隠す */
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-head { display: none !important; }
#wpforo #wpforo-wrap .wpfl-3 { border: none; background: none; }

/* 1件ずつカードにする */
#wpforo #wpforo-wrap .wpfl-3 .topic-wrap {
  background: #fff;
  border: 1px solid var(--lac-line);
  border-radius: 16px;
  margin: 0 0 12px;
  padding: 0;
  transition: box-shadow .15s, transform .15s;
}
#wpforo #wpforo-wrap .wpfl-3 .topic-wrap:hover {
  box-shadow: 0 6px 18px rgba(232, 96, 122, .15);
  transform: translateY(-2px);
}
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: none;
  background: none;
}

/* 並び：アイコン → タイトル → 数字 */
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-avatar { order: 0; flex: 0 0 52px; width: 52px; float: none; padding: 0; }
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-avatar img { width: 52px; height: 52px; border-radius: 50%; }
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-details { order: 1; flex: 1 1 auto; min-width: 0; float: none; width: auto; padding: 0; }
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-stat {
  order: 2;
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  float: none;
  width: auto;
  padding: 0;
  border: none;
}
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-status { display: none !important; }

/* タイトル */
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-title {
  display: block;
  font-weight: bold;
  font-size: 1.02em;
  line-height: 1.5;
  color: var(--lac-main-dark);
  text-decoration: none;
  margin-bottom: 4px;
}
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-author,
#wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-bottom { font-size: .78em; color: var(--lac-sub); }

/* 数字（投票は使わないので隠し、回答数と閲覧数をピル型に） */
#wpforo #wpforo-wrap .wpfl-3 .wpf-tbox.votes { display: none !important; }
#wpforo #wpforo-wrap .wpfl-3 .wpf-tbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: auto;
  margin: 0;
  padding: 6px 8px;
  border-radius: 12px;
  border: none;
  background: #fff3f5;
}
#wpforo #wpforo-wrap .wpfl-3 .wpf-tbox .count { font-size: 1.15em; font-weight: bold; color: var(--lac-main); line-height: 1.2; }
#wpforo #wpforo-wrap .wpfl-3 .wpf-tbox .wpforo-label { font-size: .68em; color: var(--lac-sub); line-height: 1; }
#wpforo #wpforo-wrap .wpfl-3 .wpf-tbox .wpforo-label svg { width: 14px; height: 14px; fill: currentColor; }
#wpforo #wpforo-wrap .wpfl-3 .wpf-tbox.views { background: #f6f3f2; }
#wpforo #wpforo-wrap .wpfl-3 .wpf-tbox.views .count { color: var(--lac-sub); }

/* スマホ：数字はタイトルの下に回す */
@media (max-width: 600px) {
  #wpforo #wpforo-wrap .wpfl-3 .wpforo-topic { flex-wrap: wrap; gap: 10px; padding: 14px; }
  #wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-avatar { flex-basis: 42px; width: 42px; }
  #wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-avatar img { width: 42px; height: 42px; }
  #wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-details { flex-basis: calc(100% - 52px); }
  #wpforo #wpforo-wrap .wpfl-3 .wpforo-topic-stat { margin-left: 52px; }
  #wpforo #wpforo-wrap .wpfl-3 .wpf-tbox { flex-direction: row; gap: 4px; min-width: 0; padding: 3px 10px; }
}

/* 相談の詳細ページ：投稿をカード風に（2026-10-15） */
#wpforo #wpforo-wrap .wpforo-post {
  background: #fff;
  border: 1px solid var(--lac-line);
  border-radius: 16px;
  overflow: hidden;
}
#wpforo #wpforo-wrap .wpfl-3 .wpforo-post.wpfp-first,
#wpforo #wpforo-wrap .post-wrap.wpfp-first .wpforo-post { border: 2px solid #f8c9d2; }
#wpforo #wpforo-wrap .wpforo-post .wpf-content-foot,
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content { background: transparent; }
