/* ================================================================
   恋愛相談ページ専用CSS
   gw-consultation/consultation.css
   is_singular('consultation') または is_post_type_archive('consultation') のときのみ読み込まれる
   ================================================================ */


/* ---- 相談詳細ページ：h1 タイトル装飾 ---- */
.consultation-detail h1.entry-title {
  position: relative;
  padding: .5em .7em .4em;
  border-bottom: 3px solid var(--theme-palette-color-1);
  color: #333333;
}

.consultation-detail h1.entry-title::before,
.consultation-detail h1.entry-title::after {
  position: absolute;
  left: 30px;
  bottom: -15px;
  width: 30px;
  height: 15px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
}

.consultation-detail h1.entry-title::before {
  background-color: var(--theme-palette-color-1);
}

.consultation-detail h1.entry-title::after {
  bottom: -11px;
  background-color: #fff;
}


/* ---- カテゴリバッジ ---- */
.consultation-category {
  display: inline-block;
  padding: 0.4em 1em;
  background: var(--theme-palette-color-6);
  color: var(--theme-palette-color-3);
  border-radius: 5px;
  font-size: 0.6em;
  margin: 1em 0;
}


/* ---- 相談者プロフィールボックス群 ---- */
.person-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.person-box {
  background: #f0f0f0;
  padding: 0.8em;
  border-radius: 10px;
  width: 100%;
  max-width: 40vw;
  text-align: center;
  font-size: 0.85em;
  flex: 1;
}

.person-box img {
  width: 40px;
  height: auto;
  margin-bottom: 0.5em;
}

.person-box .age {
  font-size: 1.4em;
  font-weight: bold;
}

@media screen and (min-width: 481px) {
  .person-box {
    max-width: 25vw;
    font-size: 1em;
  }

  .person-box img {
    width: 60px;
  }

  .person-box .age {
    font-size: 1.8em;
  }
}


/* ---- 相談内容エリア ---- */
.consutation-goal {
  margin-top: 2em;
}

/* 相談詳細内の h2 装飾 */
.consutation-detail h2 {
  position: relative;
  padding: .3em 0 .2em 1em;
  border-bottom: 1px dotted var(--theme-palette-color-5);
  color: #333333;
}

.consutation-detail h2::before {
  position: absolute;
  top: 0;
  left: .3em;
  transform: rotate(55deg);
  height: 8px;
  width: 9px;
  background: var(--theme-palette-color-1);
  content: '';
}

.consutation-detail h2::after {
  position: absolute;
  transform: rotate(15deg);
  top: .6em;
  left: 0;
  height: 6px;
  width: 6px;
  background: var(--theme-palette-color-1);
  content: '';
}
