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

/************************************
** Google Fonts
************************************/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/************************************
** CSS カスタムプロパティ（カラーパレット）
************************************/
:root {
  /* カラー */
  --bg-main: #f8f6f3;
  --bg-card: #ffffff;
  --text-main: #2c2c2c;
  --text-sub: #6b6b6b;
  --accent-gold: #c9a96e;
  --accent-gold-deep: #b8943d;
  --accent-navy: #1a2744;
  --border-soft: #e8e4de;

  /* フォント */
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  --font-heading: 'Cormorant Garamond', 'Noto Sans JP', serif;

  /* シャドウ */
  --shadow-card: 0 2px 12px rgba(26, 39, 68, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(26, 39, 68, 0.12);

  /* トランジション */
  --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/************************************
** 基本設定
************************************/
body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.85;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* リンク基本 */
a {
  color: var(--accent-navy);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-gold);
}

/************************************
** ヘッダー
************************************/
.header,
#header {
  background-color: var(--accent-navy);
  box-shadow: 0 2px 20px rgba(26, 39, 68, 0.15);
  position: relative;
}

/* ヘッダー下部のゴールドライン */
.header::after,
#header::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* サイトロゴ・タイトル */
.site-name-text,
.header .site-name-text {
  color: #ffffff;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

.site-name-text a,
.header a {
  color: #ffffff;
}

/* ヘッダー内ロゴ画像 - 明るく見せる */
.header-site-logo-image {
  filter: brightness(1.1);
  transition: filter var(--transition-base);
}

.header-site-logo-image:hover {
  filter: brightness(1.25);
}

/* キャッチフレーズ */
.tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85em;
  letter-spacing: 0.12em;
}

/************************************
** グローバルナビ
************************************/
.navi,
#navi {
  background-color: var(--accent-navy);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.navi a,
#navi a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9em;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  transition: all var(--transition-base);
}

.navi a:hover,
#navi a:hover {
  color: var(--accent-gold);
  background-color: rgba(201, 169, 110, 0.08);
}

/* ナビメニュー下線ホバー */
.navi .menu-item a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--transition-base);
  margin-top: 4px;
}

.navi .menu-item a:hover::after {
  width: 100%;
}

/************************************
** メインコンテンツエリア
************************************/
#content,
.content {
  margin-top: 24px;
}

/* フロントページの説明文エリア */
.front-top-page .entry-content {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--accent-gold);
  margin-bottom: 32px;
  font-size: 1.02em;
  line-height: 2;
  text-align: center;
}

/************************************
** 記事カード
************************************/
.entry-card-wrap {
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  overflow: hidden;
  margin-bottom: 24px;
}

.entry-card-wrap:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

/* サムネイル画像 */
.entry-card-thumb {
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}

.entry-card-thumb img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.05);
}

/* カードタイトル */
.entry-card-title,
.card-title {
  font-weight: 700;
  font-size: 1.05em;
  color: var(--text-main);
  line-height: 1.6;
  transition: color var(--transition-base);
}

.entry-card-wrap:hover .entry-card-title,
.entry-card-wrap:hover .card-title {
  color: var(--accent-navy);
}

/* カード抜粋テキスト */
.entry-card-snippet,
.card-snippet {
  color: var(--text-sub);
  font-size: 0.88em;
  line-height: 1.75;
}

/* 投稿日 */
.entry-date,
.post-date {
  color: var(--text-sub);
  font-size: 0.82em;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

/* カテゴリラベル */
.cat-label {
  background: var(--accent-navy);
  color: #ffffff;
  font-size: 0.72em;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

/************************************
** 記事本文
************************************/
.article {
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 48px 44px;
}

/* 記事タイトル */
.article h1,
.entry-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.6em;
  color: var(--accent-navy);
  line-height: 1.5;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent-gold);
  margin-bottom: 32px;
}

/* 見出し h2 */
.article h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35em;
  color: var(--accent-navy);
  padding: 16px 20px;
  margin: 48px 0 24px;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.03), rgba(201, 169, 110, 0.06));
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 6px 6px 0;
  position: relative;
}

/* 見出し h3 */
.article h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15em;
  color: var(--text-main);
  padding-bottom: 10px;
  margin: 36px 0 18px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.article h3::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
}

/* 見出し h4 */
.article h4 {
  font-weight: 700;
  font-size: 1.05em;
  color: var(--accent-navy);
  margin: 28px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--accent-gold);
}

/* ブロック引用 */
.article blockquote {
  background: rgba(201, 169, 110, 0.06);
  border-left: 4px solid var(--accent-gold);
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
  color: var(--text-sub);
  font-style: italic;
}

/* リスト */
.article ul li,
.article ol li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.article ul li::marker {
  color: var(--accent-gold);
}

/************************************
** サイドバー
************************************/
#sidebar,
.sidebar {
  font-size: 0.92em;
}

/* サイドバーウィジェット */
.widget {
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 20px;
}

/* ウィジェットタイトル */
.widget-title,
.widget_title {
  font-family: var(--font-heading);
  font-size: 1.1em;
  font-weight: 600;
  color: var(--accent-navy);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  letter-spacing: 0.04em;
}

.widget-title::after,
.widget_title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
}

/* サイドバーリンク */
.widget a {
  color: var(--text-main);
  transition: all var(--transition-base);
}

.widget a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

/* サイドバーリストアイテム */
.widget li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 228, 222, 0.5);
}

.widget li:last-child {
  border-bottom: none;
}

/************************************
** ページネーション
************************************/
.pagination .current {
  background: var(--accent-navy);
  color: #ffffff;
  border-color: var(--accent-navy);
  border-radius: 4px;
}

.pagination a {
  color: var(--accent-navy);
  border-radius: 4px;
  transition: all var(--transition-base);
}

.pagination a:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

/************************************
** フッター
************************************/
#footer,
.footer {
  background-color: var(--accent-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 24px;
}

#footer a,
.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

#footer a:hover,
.footer a:hover {
  color: var(--accent-gold);
}

/* フッターロゴ */
.footer-site-logo-image {
  filter: brightness(1.1);
}

/* コピーライト */
.copyright {
  font-family: var(--font-heading);
  font-size: 0.85em;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/************************************
** モバイルメニュー
************************************/
.mobile-menu-buttons {
  background-color: var(--accent-navy);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.mobile-menu-buttons .menu-button {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-buttons .menu-button:hover,
.mobile-menu-buttons .menu-button:active {
  color: var(--accent-gold);
}

/************************************
** ボタン・CTA
************************************/
.btn,
.wp-block-button__link {
  background: var(--accent-navy);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all var(--transition-base);
  border: none;
}

.btn:hover,
.wp-block-button__link:hover {
  background: var(--accent-gold-deep);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

/************************************
** SNSシェアボタン
************************************/
.sns-share-buttons a,
.sns-follow-buttons a {
  border-radius: 4px;
  transition: all var(--transition-base);
}

.sns-share-buttons a:hover,
.sns-follow-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/************************************
** 目次
************************************/
.toc {
  background: rgba(248, 246, 243, 0.8);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 24px 28px;
}

.toc-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-navy);
  font-size: 1.05em;
  letter-spacing: 0.04em;
}

.toc a {
  color: var(--text-sub);
  font-size: 0.92em;
  transition: all var(--transition-base);
}

.toc a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

/************************************
** スクロールバー
************************************/
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: rgba(26, 39, 68, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/************************************
** フェードインアニメーション
************************************/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry-card-wrap {
  animation: fadeInUp 0.6s ease-out both;
}

.entry-card-wrap:nth-child(2) {
  animation-delay: 0.1s;
}

.entry-card-wrap:nth-child(3) {
  animation-delay: 0.2s;
}

.entry-card-wrap:nth-child(4) {
  animation-delay: 0.3s;
}

.entry-card-wrap:nth-child(5) {
  animation-delay: 0.4s;
}

/************************************
** セレクション（選択時の色）
************************************/
::selection {
  background: var(--accent-gold);
  color: #ffffff;
}

::-moz-selection {
  background: var(--accent-gold);
  color: #ffffff;
}

/************************************
** 記事カスタムクラス：チャット吹き出し
************************************/

/* 共通チャットスタイル */
.chat-her,
.chat-me {
  position: relative;
  padding: 14px 18px;
  margin: 12px 0;
  border-radius: 12px;
  font-size: 0.95em;
  line-height: 1.75;
  max-width: 80%;
  clear: both;
}

/* 相手側（HER） */
.article .chat-her,
.chat-her {
  background: #fcfcfc !important;
  /* 明るいクリーム色 */
  border-left: 4px solid #a67c52 !important;
  color: #333333 !important;
  padding: 18px !important;
  border-radius: 6px !important;
  margin: 15px 0 !important;
  display: block !important;
  width: fit-content !important;
  max-width: 80% !important;
}

.chat-her::before {
  content: '💬 Her';
  display: block;
  font-size: 0.7em;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* 自分側（ME） */
.article .chat-me,
.chat-me {
  background: #212830 !important;
  /* 背景をダークグレーに強制 */
  border-left: 4px solid #002b5b !important;
  /* 画像に合わせて右側のボーダーも追加 */
  border-right: 2px solid #a67c52 !important;
  color: #ffffff !important;
  /* 文字は白 */
  padding: 18px !important;
  border-radius: 6px !important;
  margin: 15px 0 15px auto !important;
  /* 右寄せ */
  display: block !important;
  width: fit-content !important;
  max-width: 80% !important;
}

.chat-me::before {
  content: '💬 Me';
  display: block;
  font-size: 0.7em;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ★重要：中の<p>タグの背景を透明にして、親の色を継承させる */
.article .chat-me p,
.article .chat-her p,
.chat-me p,
.chat-her p {
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  /* Pタグ特有の無駄な余白を消す */
}

/************************************
** 記事カスタムクラス：分析ボックス
************************************/
.analysis-box {
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.04), rgba(201, 169, 110, 0.08));
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 24px 0;
  font-size: 0.93em;
  line-height: 1.85;
  color: var(--text-main);
  position: relative;
}

.analysis-box::before {
  content: '🧠 戦略メモ';
  display: block;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--accent-gold-deep);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.analysis-box strong {
  color: var(--accent-navy);
}

.analysis-box ul {
  margin-top: 8px;
  padding-left: 20px;
}

.analysis-box ul li {
  margin-bottom: 6px;
}

.analysis-box ul li::marker {
  color: var(--accent-gold);
}

/************************************
** 記事カスタムクラス：ショップカード
************************************/
.shop-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  overflow: hidden;
}

.shop-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.shop-card>img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.shop-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-info h4 {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--accent-navy);
  margin: 0 0 8px 0;
  padding: 0;
  border: none;
}

.shop-info p {
  font-size: 0.88em;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.shop-link {
  display: inline-block;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--accent-gold-deep);
  letter-spacing: 0.04em;
  transition: all var(--transition-base);
}

.shop-link:hover {
  color: var(--accent-navy);
  padding-left: 4px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*1023px以下*/
@media screen and (max-width: 1023px) {
  .article {
    padding: 36px 28px;
  }

  .front-top-page .entry-content {
    padding: 36px 28px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  .article {
    padding: 28px 20px;
    border-radius: 0;
  }

  .article h1,
  .entry-title {
    font-size: 1.35em;
  }

  .article h2 {
    font-size: 1.2em;
    padding: 14px 16px;
  }

  .front-top-page .entry-content {
    padding: 28px 20px;
    font-size: 0.95em;
  }

  .widget {
    border-radius: 0;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .article {
    padding: 20px 16px;
  }

  .article h1,
  .entry-title {
    font-size: 1.2em;
  }

  .article h2 {
    font-size: 1.1em;
    padding: 12px 14px;
    margin: 36px 0 18px;
  }

  .article h3 {
    font-size: 1.05em;
  }

  .front-top-page .entry-content {
    padding: 24px 16px;
    font-size: 0.9em;
    line-height: 1.9;
  }

  /* カスタムクラス レスポンシブ */
  .chat-her,
  .chat-me {
    max-width: 92%;
    padding: 12px 14px;
    font-size: 0.9em;
  }

  .analysis-box {
    padding: 18px 16px;
    font-size: 0.88em;
  }

  .shop-card {
    flex-direction: column;
    padding: 16px;
  }

  .shop-card>img {
    width: 100%;
    height: 180px;
  }
}