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

/* ============================================================
   共通カラー変数
   ============================================================ */
:root {
  --grad-header: linear-gradient(135deg, #d63bc8 0%, #a855f7 60%, #6366f1 100%);
  --grad-hero:   linear-gradient(135deg, #f8d0f0 0%, #e0b4fa 35%, #c4a8f5 65%, #a8c8ff 100%);
  --grad-btn:    linear-gradient(90deg, #d946ef, #a855f7);
  --grad-footer: linear-gradient(135deg, #581c87 0%, #4c1d95 50%, #1e1b4b 100%);
  --pink-accent: #e879f9;
  --purple-text: #7c3aed;
  --purple-dark: #4b2b6b;
}


/*==================================================
  header
==================================================*/
#header-container{
  background:var(--grad-header);
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

#header-container-in{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
  min-height:56px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

#header{
  background:none;
  margin:0;
  padding:0;
  flex-shrink:0;
}

#header-in{
  margin:0;
  padding:0;
}

.logo-header{
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
  line-height:1;
}

.logo-header>a{
  display:flex;
  align-items:center;
}

.site-logo-image{
  display:block;
  height:30px;
  width:auto;
  max-width:none;
}

.site-name-text,
.tagline{
  display:none;
}

#navi{
  background:none;
}

.navi-in{
  width:auto;
}

.navi-in>ul{
  display:flex;
  align-items:center;
  gap:20px;
}

.navi-in li{
  border:none;
}

.navi-in a{
  color:#fff;
  font-size:13px;
  padding:0;
}

.navi-in a:hover{
  opacity:.8;
}

@media (max-width:834px){
  .content-in.wrap,
  .header-container-in{
    min-height:48px;
    padding:10px 12px;
  }

  .site-logo-image{
    height:26px;
  }

  .navi-in{
    display:none;
  }
}

/* ============================================================
   3. アピールエリア（参考画像の「ヒーロー」部分）
   Cocoon設定 → アピールエリア で「表示する範囲」を有効にし、
   タイトル／メッセージ／ボタンを入力しておいてください。
   画像を設定しなくてもこのCSSでグラデーション背景になります。
   ============================================================ */
.appeal,
.appeal-in {
  background: var(--grad-hero) !important;
  background-image: none !important;
  min-height: 220px !important;
}
.appeal-content {
  text-align: center;
  padding: 32px 20px !important;
}
.appeal-title {
  color: #5b1d8a !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  border-bottom: none !important;
  text-shadow: none !important;
}
.appeal-message {
  color: var(--purple-text) !important;
  font-size: 13px !important;
}
.appeal-content .appeal-button {
  background: var(--grad-btn) !important;
  border: none !important;
  border-radius: 20px !important;
  color: #fff !important;
  box-shadow: none !important;
  padding: 10px 26px !important;
  display: inline-block;
  margin-top: 14px;
}


/* ============================================================
   4. サイドバー：PRバナー（#custom_html-2 に手動でHTML入力）
   ウィジェットの中身に以下を入力してください：
   <a href="リンク先" class="pr-banner">✨ おすすめコスメ特集 →</a>
   ============================================================ */
.pr-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0abfc, #c084fc);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}


/* ============================================================
   5. サイドバー：ウィジェットタイトル共通
   （プロフィール／カテゴリー／人気記事、すべてに適用）
   ============================================================ */
.widget-sidebar-title.widget-title {
  background: linear-gradient(90deg, #fdf4ff, #f5f3ff) !important;
  border-left: 3px solid #d946ef !important;
  border-bottom: none !important;
  border-radius: 0 4px 4px 0;
  padding: 6px 10px !important;
  font-size: 13px !important;
}
/* タイトル文字の両端に入るデフォルトの飾り線を消す */
.widget-sidebar-title.widget-title::before,
.widget-sidebar-title.widget-title::after {
  display: none !important;
}


/* ============================================================
   6. サイドバー：プロフィールウィジェット（#author_box-2）
   ============================================================ */
.author-thumb img {
  border: 3px solid #f3e8ff !important;
  width: 80px !important;
  height: 80px !important;
}
.author-name a {
  color: var(--purple-dark) !important;
  font-size: 14px !important;
}
.author-description {
  font-size: 12px !important;
  line-height: 1.6;
}
.sns-follow-buttons {
  justify-content: center !important;
}
.sns-follow .sns-button {
  background: linear-gradient(135deg, #e879f9, #6366f1) !important;
  border: none !important;
  width: 28px !important;
  height: 28px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.sns-follow .sns-button .social-icon,
.sns-follow .sns-button [class*="icon-"] {
  color: #fff !important;
  font-size: 12px !important;
}
/* Feedly・RSSの購読ボタンは非表示（未設定のリンクを隠す） */
.sns-follow .feedly-button,
.sns-follow .rss-button {
  display: none !important;
}
.sns-follow .sns-button {
  background: linear-gradient(135deg, #e879f9, #6366f1) !important;
  border: none !important;
}
/* 「この記事を書いた人」ラベルを非表示 */
.author-widget-name {
  display: none !important;
}


/* ============================================================
   7. サイドバー：カテゴリーウィジェット（#categories-2）
   ============================================================ */
#categories-2 ul li {
  border-radius: 6px;
  font-size: 13px !important;
}
#categories-2 ul li:hover {
  background: #fdf4ff !important;
}


/* ============================================================
   8. サイドバー：人気記事ウィジェット（#popular_entries-2）
   ============================================================ */
.popular-entry-cards .entry-card-ranking-number {
  background: linear-gradient(135deg, #e879f9, #a855f7) !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 11px !important;
}
.popular-entry-cards .entry-card-title {
  font-size: 12px !important;
}


/* ============================================================
   9. 記事一覧（記事を投稿したら反映されます）
   ============================================================ */
.article-heading,
.main-widget-label {
  border-bottom: 2px solid var(--pink-accent) !important;
  padding-bottom: 8px;
  position: relative;
  padding-left: 12px;
}
.main-widget-label::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 4px; height: 16px;
  border-radius: 2px;
  background: var(--grad-btn);
}
.entry-card {
  border-radius: 12px !important;
  overflow: hidden;
  border: 1px solid #f0d9f7 !important;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.08) !important;
  transition: transform 0.15s ease;
}
.entry-card:hover {
  transform: translateY(-3px);
}
.cat-label {
  background: linear-gradient(90deg, #d946ef, #a855f7) !important;
  border-radius: 10px !important;
  color: #fff !important;
  border: none !important;
}
.entry-card-title {
  color: var(--purple-dark) !important;
}
.pagination .page-numbers {
  border-radius: 50% !important;
  border: 1px solid #f0d9f7 !important;
}
.pagination .page-numbers.current {
  background: var(--grad-btn) !important;
  border: none !important;
  color: #fff !important;
}


/* ============================================================
   10. フッター
   #footer-in も「wrap」なので、色は外側の #footer につける
   ============================================================ */
#footer {
  background: var(--grad-footer) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
#footer-in {
  padding: 10px 0 !important;
}
.footer-bottom {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
.footer-bottom-logo,
.footer-bottom-content {
  text-align: center !important;
}
#navi-footer-in {
  justify-content: center !important;
}
#footer-in .logo-footer a,
#footer-in .copyright,
#footer-in .navi-footer-in a {
  color: rgba(255, 255, 255, 0.85) !important;
}


/* ============================================================
   11. ボタン共通
   ============================================================ */
.sim-btn a,
.btn-normal,
.btn-angle {
  background: var(--grad-btn) !important;
  border: none !important;
  border-radius: 20px !important;
  color: #fff !important;
}


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

/*834px以下*/
@media screen and (max-width: 834px){
  #header-container-in {
    min-height: 40px !important;
    padding: 0 !important;
  }
  #header-in {
    padding: 0 12px !important;
    text-align: left !important;
  }
  #header-in .site-name-text {
    font-size: 14px !important;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .appeal-content { padding: 16px 12px !important; }
  .entry-card { border-radius: 10px !important; }
}
