@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* 変身ビューティ協会 Phase 1 基本デザイン（ステージング） */
:root {
  --hb-pink: #ffafeb;
  --hb-pink-soft: #ffc3f0;
  --hb-pink-deep: #ff82b9;
  --hb-bg: #fffbfc;
  --hb-cta-pink: #fbd9e2;
  --hb-cta-pink-strong: #f7b8c9;
  --hb-cta-mint: #cdeee1;
  --hb-cta-mint-strong: #a8e6cf;
  --hb-cta-text: #6d4a54;
  --hb-cta-text-strong: #4a3b3f;
}

body {
  background-color: var(--hb-bg);
  color: #313131;
  font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
#navi,
.mobile-menu-buttons {
  font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 700;
}

.article h2 {
  background: transparent;
  border: 0;
  border-bottom: 3px solid var(--hb-pink);
  color: var(--hb-pink);
  padding: 0.55em 0.25em 0.35em;
}

#navi,
#navi .navi-in > ul,
#footer {
  background-color: var(--hb-pink);
}

#navi .navi-in > ul > li > a,
#footer,
#footer a {
  color: #ffffff;
}

#navi .navi-in > ul > li > a {
  font-size: 13px;
  font-weight: 700;
  line-height: 40px;
}

/* 本番AFFINGERの1060px幅に揃え、長い相談メニュー名も省略せず表示する。 */
#navi .navi-in {
  max-width: 1060px;
}

#navi .navi-in > ul > li {
  flex: 1 1 20%;
}

#navi .navi-in > ul > li > a:hover,
#navi .navi-in > ul > li.current-menu-item > a {
  background-color: var(--hb-pink-deep);
}

.header-in {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ヒーロー画像内にサイト名が含まれるため、Cocoonの重複テキストは隠す。 */
.header .site-name-text,
.header .tagline {
  display: none;
}

/* AFFINGER時代のPC用ヘッダー帯（協会ロゴ・説明・電話）を再現する。 */
.hb-preheader {
  box-sizing: border-box;
  min-height: 142px;
  background: var(--hb-pink);
  color: #ffffff;
}

.hb-preheader__inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1060px, calc(100% - 40px));
  min-height: 142px;
  margin: 0 auto;
}

.hb-preheader__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hb-preheader__logo {
  display: block;
  width: 61px;
  height: 60px;
  object-fit: contain;
}

.hb-preheader__copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  line-height: 1.35;
}

.hb-preheader__copy span {
  font-size: 12px;
}

.hb-preheader__copy strong {
  max-width: 310px;
  font-size: 20px;
  line-height: 1.25;
}

.hb-preheader__phone {
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.hb-preheader__phone::before {
  content: "\260e";
  margin-right: 8px;
}

/* トップページの既存4導線。Cocoonのbodyクラスと絶対URLにも対応する。 */
.page-id-29 .entry-content a[href$="/lecture/"],
.page-id-29 .entry-content a[href$="/voice/"],
.page-id-29 .entry-content a[href$="/kyoukai-gaiyou/"],
.page-id-29 .entry-content a[href$="/daihyou-omoi/"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 14px auto;
  padding: 15px 24px;
  border-radius: 40px;
  background: linear-gradient(120deg, var(--hb-cta-pink) 0%, var(--hb-cta-mint) 100%);
  box-shadow: 0 3px 12px rgba(200, 140, 160, 0.22);
  color: var(--hb-cta-text) !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.page-id-29 .entry-content a[href$="/lecture/"] {
  background: linear-gradient(120deg, var(--hb-cta-pink-strong) 0%, var(--hb-cta-mint-strong) 100%);
  box-shadow: 0 4px 14px rgba(180, 120, 145, 0.3);
  color: var(--hb-cta-text-strong) !important;
  font-size: 1.06em;
}

.page-id-29 .entry-content a[href$="/lecture/"]:hover,
.page-id-29 .entry-content a[href$="/voice/"]:hover,
.page-id-29 .entry-content a[href$="/kyoukai-gaiyou/"]:hover,
.page-id-29 .entry-content a[href$="/daihyou-omoi/"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(200, 140, 160, 0.32);
}

/* トップページ：お知らせ・記事一覧・カテゴリタグ */
.hb-front-feed {
  margin-top: 40px;
}

.hb-front-section {
  margin: 0 0 34px;
  padding: 24px;
  border: 1px solid rgba(255, 175, 235, 0.7);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(194, 123, 157, 0.1);
}

.hb-front-section__title,
#sidebar .hb-sidebar-title {
  margin: 0 0 18px;
  color: var(--hb-pink-deep);
  font-size: 1.35rem;
  font-weight: 700;
}

.hb-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.hb-category-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--hb-pink);
  border-radius: 999px;
  background: #fff7fc;
  color: var(--hb-cta-text-strong) !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
}

.hb-category-tags a:hover,
.hb-category-tags a:focus-visible {
  background: var(--hb-pink);
  color: #ffffff !important;
}

.hb-front-news .new-entry-card {
  border-bottom: 1px solid #f2d7e7;
}

.hb-front-news .new-entry-card-thumb {
  display: none;
}

.hb-front-news .new-entry-card-content {
  margin-left: 0;
}

.hb-front-news .new-entry-card-title {
  font-size: 0.98rem;
}

.hb-more-link {
  margin: 20px 0 0;
  text-align: right;
}

.hb-more-link a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--hb-pink);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.hb-front-pickup-mobile {
  display: none;
}

/* サイドバー：既存AFFINGERの固定3件をCocoonカードでランキング表示。 */
#sidebar .hb-pickup-list {
  counter-reset: hb-pickup-rank;
}

#sidebar .hb-pickup-list .widget-entry-card {
  position: relative;
  counter-increment: hb-pickup-rank;
}

#sidebar .hb-pickup-list .widget-entry-card::before {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 4px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--hb-pink-deep);
  color: #ffffff;
  content: counter(hb-pickup-rank);
  font-size: 0.78rem;
  font-weight: 700;
}

#sidebar .widget {
  border-radius: 14px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .hb-front-pickup-mobile {
    display: block;
  }

  .hb-front-pickup-mobile .hb-pickup-list {
    counter-reset: hb-pickup-rank;
  }

  .hb-front-pickup-mobile .widget-entry-card {
    position: relative;
    counter-increment: hb-pickup-rank;
  }

  .hb-front-pickup-mobile .widget-entry-card::before {
    position: absolute;
    z-index: 2;
    top: 4px;
    left: 4px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--hb-pink-deep);
    color: #ffffff;
    content: counter(hb-pickup-rank);
    font-size: 0.78rem;
    font-weight: 700;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .hb-preheader {
    display: none;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .hb-front-feed {
    margin-top: 28px;
  }

  .hb-front-section {
    margin-bottom: 24px;
    padding: 18px 15px;
    border-radius: 12px;
  }

  .hb-category-tags {
    gap: 8px;
  }

  .hb-category-tags a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
