@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;
}

/* ロゴと協会名は、どのページからでもトップへ戻れる入口にする（2026-08-07） */
.hb-preheader__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  padding: 4px 8px;
  margin-left: -8px;
  transition: background .25s ease, opacity .25s ease;
}
.hb-preheader__brand:hover,
.hb-preheader__brand:focus-visible {
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, .28);
}
.hb-preheader__brand:hover .hb-preheader__logo {
  opacity: .88;
}

.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;
  }
}

/* ==========================================================================
   ヘッダー：画像部分もクリックでトップへ戻れるようにする（2026-08-07 改訂）
   Cocoonはヘッダー画像をCSS背景として敷き、協会名の文字も画像に焼き込まれている。
   本物のリンク要素(a.site-name-text-link)は高さ0に潰れており、
   height:100% では親の高さがautoのため解決しなかった。
   リンクをヘッダーいっぱいに絶対配置し、画像のどこを押してもトップへ戻れるようにする。
   スマホのメニューはヘッダー外（画面下部の固定バー）にあるため干渉しない。
   ========================================================================== */
#header {
  position: relative;
}
#header .logo-header .site-name-text-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}
/* 画像に焼き込まれた協会名と二重にならないよう、テキストは読み上げ用に残して隠す */
#header .logo-header .site-name-text-link .site-name-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#header .logo-header .site-name-text-link:hover {
  background: rgba(255, 255, 255, .06);
  transition: background .25s ease;
}

/* トップページに自動生成される目次は、個人ブログの見た目になるため出さない */
.home .toc {
  display: none !important;
}

/* ==========================================================================
   トップページ 全面改修（2026-08-07）
   配色は governance/デザイン配色ガイドライン_v1.0.md に準拠
   クリーム #FBF6EC ／ 桃 #F4B8C1・#E89AA6 ／ ミント #B9E0D2・#8FCBB7 ／ 文字 #4A4A4A
   ========================================================================== */

/* トップページのみ：タイトル・日付・SNSボタンを隠す（h1「トップページ」対策） */
.home .entry-title,
.home .date-tags,
.home .sns-share,
.home .sns-follow,
.home .article-header { display: none !important; }

/* ヒーロー */
.hb-hero {
  background:
    linear-gradient(rgba(251,246,236,.91), rgba(251,246,236,.91)),
    url("https://hensinbeauty.com/wp-content/uploads/2026/06/hb-hero.jpg") center/cover no-repeat;
  border: 1px solid rgba(232,154,166,.22);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(109,74,84,.055);
  padding: 42px 32px;
  margin: 12px 0 32px;
  text-align: center;
}
.hb-hero-lead {
  font-size: 1.25em; line-height: 2.15; letter-spacing: .045em; margin: 0 0 18px; color: #4A4A4A;
}
.hb-hero-sub { font-size: .98em; line-height: 2.05; letter-spacing: .025em; margin: 0; color: #6b6459; }

/* 2大CTA */
.hb-cta-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 54px;
}
.hb-cta {
  display: flex; flex-direction: column; justify-content: center; min-height: 96px;
  padding: 24px 22px; border-radius: 22px;
  text-decoration: none !important; color: #4A4A4A !important;
  box-shadow: 0 8px 24px rgba(109,74,84,.055);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hb-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(109,74,84,.075); }
.hb-cta-pink { background: #F4B8C1; }
.hb-cta-mint { background: #B9E0D2; }
.hb-cta-label { display: block; font-size: .82em; letter-spacing: .08em; margin-bottom: 6px; opacity: .85; }
.hb-cta-title { display: block; font-size: 1.3em; font-weight: 500; margin-bottom: 8px; }
.hb-cta-note  { display: block; font-size: .82em; line-height: 1.7; opacity: .9; }

/* 5層モデル */
.hb-layers {
  display: flex; flex-direction: column-reverse; align-items: center;
  gap: 8px; margin: 30px auto 34px; max-width: 680px;
}
.hb-layer {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  min-height: 52px; padding: 11px 20px; border-radius: 18px;
  font-size: 1.02em; letter-spacing: .035em;
  box-shadow: 0 5px 16px rgba(109,74,84,.045);
}
.hb-layer::before {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px;
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.7);
  color: #6d4a54; font-size: .82em;
}
.hb-l1 { width: 100%; background: #F4B8C1; }
.hb-l2 { width: 92%; background: #B9E0D2; }
.hb-l3 { width: 84%; background: #E89AA6; }
.hb-l4 { width: 76%; background: #8FCBB7; }
.hb-l5 { width: 68%; background: #F4B8C1; }
.hb-l1::before { content: "1"; }
.hb-l2::before { content: "2"; }
.hb-l3::before { content: "3"; }
.hb-l4::before { content: "4"; }
.hb-l5::before { content: "5"; }

/* 記事カード */
.hb-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 30px 0 16px;
}
.hb-card {
  display: block; background: #fff; border-radius: 22px; overflow: hidden;
  text-decoration: none !important; color: #4A4A4A !important;
  border: 1px solid rgba(232,154,166,.16); box-shadow: 0 8px 24px rgba(109,74,84,.045);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hb-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(109,74,84,.07); }
.hb-card img {
  width: 100%; height: 168px; object-fit: cover; display: block; margin: 0;
  transition: transform .28s ease;
}
.hb-card:hover img { transform: scale(1.025); }
.hb-card-title {
  display: block; padding: 17px 18px 20px; font-size: .93em; line-height: 1.8; letter-spacing: .015em;
}

/* ステップ */
.hb-steps { margin: 30px 0 10px; }
.hb-step {
  display: flex; gap: 18px; background: #fff; border-radius: 20px;
  padding: 24px; margin-bottom: 16px; border: 1px solid rgba(143,203,183,.22);
  box-shadow: 0 7px 22px rgba(109,74,84,.04);
}
.hb-step-num {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: #8FCBB7; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 1.05em;
}
.hb-step-body strong { display: block; font-size: 1.08em; font-weight: 500; margin-bottom: 6px; }
.hb-step-body p { margin: 0 0 4px; font-size: .94em; line-height: 1.8; }

/* セクション：白とクリームを交互に置き、スクロールに穏やかなリズムをつくる */
.hb-section {
  margin: 0 -30px;
  padding: 52px 30px 56px;
}
.hb-section-white { background: #fff; }
.hb-section-cream { background: #FBF6EC; }
.hb-section > :first-child { margin-top: 0 !important; }
.hb-section > :last-child { margin-bottom: 0 !important; }

/* 見出し */
.home .entry-content h2 {
  position: relative; font-size: 1.35em; font-weight: 500; letter-spacing: .035em;
  line-height: 1.65; background: none; color: #4A4A4A;
  border: none; border-left: 2px solid #E89AA6; padding: 4px 0 4px 18px;
  margin: 54px 0 22px;
}
.home .entry-content h2::after {
  content: ""; position: absolute; left: -5px; top: 50%; width: 8px; height: 8px;
  margin-top: -4px; border-radius: 50%; background: #F4B8C1;
}

/* スマホ */
@media screen and (max-width: 640px) {
  .hb-cta-2 { grid-template-columns: 1fr; gap: 14px; }
  .hb-cards { grid-template-columns: 1fr; gap: 16px; }
  .hb-hero { padding: 30px 18px; margin-top: 8px; border-radius: 20px; }
  .hb-hero-lead { font-size: 1.12em; line-height: 2; }
  .hb-cta { min-height: 56px; padding: 20px 18px; border-radius: 18px; }
  .hb-card { border-radius: 18px; }
  .hb-card img { height: 188px; }
  .hb-step { padding: 18px 16px; gap: 12px; border-radius: 18px; }
  .hb-section { margin: 0 -16px; padding: 42px 16px 46px; }
  .hb-layer { padding: 10px 12px; gap: 8px; }
  .hb-l1 { width: 100%; }
  .hb-l2 { width: 96%; }
  .hb-l3 { width: 92%; }
  .hb-l4 { width: 88%; }
  .hb-l5 { width: 84%; }
  .home .entry-content h2 { font-size: 1.2em; margin: 42px 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-cta, .hb-card, .hb-card img { transition: none; }
}
