@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
 */

/* ============ カラー変数 ============ */
:root {
  --orange:   #C8843A;
  --dark-br:  #5C3317;
  --mid-br:   #7B4F2E;
  --beige-lt: #FFF8F2;
  --beige-md: #FFF3E8;
  --border:   #F0D8C0;
  --gold-bd:  #F0C898;
}

/* ============ 全体 ============ */
body { background: var(--beige-lt) !important; }

/* ============ ヘッダー ============ */
#header { background: var(--beige-lt) !important; border-bottom: 1.5px solid var(--border) !important; }
#header .header-container { background: var(--beige-lt) !important; }
.site-name-text { color: var(--dark-br) !important; font-weight: 900 !important; }
.tagline { color: var(--mid-br) !important; font-size: 11px !important; }

/* ナビ */
#navi { background: var(--beige-lt) !important; border-bottom: 1.5px solid var(--border) !important; position: relative; }
#navi .navi-in > ul > li > a { color: var(--mid-br) !important; font-weight: 600 !important; font-size: 13px !important; }
#navi .navi-in > ul > li > a:hover { color: var(--orange) !important; }
.navi-in > ul > li.current-menu-item > a { border-bottom: 2px solid var(--orange) !important; }

/* ============ ハンバーガーメニュー ============ */
.anez-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  flex-direction: column;
  gap: 5px;
}
.anez-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-br);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============ ヒーローエリア ============ */
.anez-hero-photo {
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  background: #c8e6c2;
}
.anez-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://miyuko-chacha-hirotoo-mamapapa.com/wp-content/uploads/2026/04/34421935_m.jpg');
  background-size: cover;
  background-position: center bottom;
  z-index: 0;
}
.anez-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,248,240,0.62);
  z-index: 1;
}
.anez-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 24px;
  min-height: 220px;
}
.anez-hero-text { flex: 1; }
.anez-hero-title { font-size: 26px; font-weight: 900; color: #3D1E08; line-height: 1.5; margin: 0 0 8px; }
.anez-hero-title .accent, .anez-accent { color: #A05A1A; }
.anez-hero-sub { font-size: 13px; color: #5C3317; max-width: 360px; line-height: 1.7; margin: 0; }
.anez-hero-diag-card {
  flex-shrink: 0;
  background: rgba(255,243,232,.92);
  border: 2px solid var(--orange);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
  min-width: 160px;
  cursor: pointer;
  transition: box-shadow .2s;
}
.anez-hero-diag-card:hover { box-shadow: 0 4px 16px rgba(200,132,58,.25); }
.anez-dicon { font-size: 22px; }
.anez-dtitle { font-size: 13px; font-weight: 700; color: var(--dark-br); margin: 4px 0 2px; }
.anez-dsub { font-size: 11px; color: var(--mid-br); margin-bottom: 10px; }

/* ============ アイコンタブナビ ============ */
.anez-tab-nav-wrap {
  background: var(--beige-lt);
  border-bottom: 1.5px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.anez-tab-nav-wrap::-webkit-scrollbar { display: none; }
.anez-tab-nav { display: flex; max-width: 1100px; margin: 0 auto; padding: 0 12px; min-width: max-content; }
.anez-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px 8px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  background: var(--beige-md);
  flex-shrink: 0;
  border: none;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.anez-tab-item.active { background: #fff; border-bottom: 2.5px solid var(--orange); }
.anez-tab-item:hover:not(.active) { background: #fff9f3; }
.anez-tab-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 4px; }
.anez-tab-label { font-size: 12px; font-weight: 700; color: var(--dark-br); }
.anez-tab-sub { font-size: 10px; color: var(--mid-br); margin-top: 1px; }

/* ============ タブパネル ============ */
.anez-tab-panel { display: none; }
.anez-tab-panel.active { display: block; }
.anez-panels-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-sizing: border-box;
}
.anez-main-col { flex: 1; min-width: 0; }
.anez-side-col { width: 280px; flex-shrink: 0; }

/* ============ 最新記事バナー ============ */
.anez-latest-banner { background: #FFF8F2; border: 0.5px solid var(--gold-bd); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.anez-banner-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.anez-badge-orange { background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.anez-badge-purple { background: #F3EEF8; color: #7B5EA7; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin-left: 6px; }
.anez-more-link { font-size: 12px; color: var(--orange); text-decoration: none; }
.anez-more-link:hover { text-decoration: underline; }
.anez-latest-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; text-decoration: none; color: var(--dark-br); }
.anez-latest-item:last-child { border-bottom: none; }
.anez-latest-item:hover { color: var(--orange); }
.anez-date { font-size: 11px; color: #999; flex-shrink: 0; margin-left: 8px; }

/* ============ 記事カード ============ */
.anez-article-list { display: flex; flex-direction: column; gap: 12px; }
.anez-article-card { background: #fff; border: 0.5px solid #e0e0e0; border-radius: 12px; padding: 12px; display: flex; gap: 12px; cursor: pointer; transition: border-color 0.2s; text-decoration: none; color: inherit; }
.anez-article-card:hover { border-color: var(--gold-bd); }
.anez-card-thumb { width: 80px; height: 64px; border-radius: 10px; flex-shrink: 0; overflow: hidden; background: var(--beige-md); display: flex; align-items: center; justify-content: center; }
.anez-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.anez-card-thumb-emoji { font-size: 28px; }
.anez-card-body { flex: 1; min-width: 0; }
.anez-card-cat { font-size: 11px; color: var(--orange); font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.anez-card-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--dark-br); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.anez-card-date { font-size: 11px; color: #999; margin-top: 4px; }

/* ============ 年齢別グリッド ============ */
.anez-age-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.anez-age-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 12px; text-align: center; cursor: pointer; text-decoration: none; display: block; transition: border-color 0.2s, box-shadow 0.2s; }
.anez-age-card:hover { border-color: var(--orange); box-shadow: 0 2px 10px rgba(200,132,58,.15); }
.anez-age-emoji { font-size: 32px; margin-bottom: 8px; }
.anez-age-title { font-size: 13px; font-weight: 700; color: var(--dark-br); }
.anez-age-desc { font-size: 11px; color: var(--mid-br); margin-top: 4px; line-height: 1.5; }

/* ============ サイドバーウィジェット ============ */
.anez-profile-widget { background: #fff; border: 0.5px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 16px; }
.anez-profile-name { font-size: 15px; font-weight: 700; color: var(--dark-br); margin-bottom: 4px; }
.anez-profile-title { font-size: 11px; color: var(--mid-br); margin-bottom: 8px; }
.anez-profile-bio { font-size: 12px; color: #555; line-height: 1.7; text-align: left; }
.anez-profile-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 8px; }
.anez-profile-tag { background: var(--beige-md); border: 1px solid var(--border); border-radius: 20px; font-size: 10px; color: var(--mid-br); padding: 2px 8px; }
.anez-diag-widget { background: var(--beige-md); border: 2px solid var(--orange); border-radius: 12px; padding: 14px; text-align: center; margin-bottom: 16px; }
.anez-diag-widget .dw-title { font-size: 13px; font-weight: 700; color: var(--dark-br); margin-bottom: 4px; }
.anez-diag-widget .dw-sub { font-size: 11px; color: var(--mid-br); margin-bottom: 10px; }

/* ============ ボタン ============ */
.anez-btn-orange { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 20px; border-radius: 20px; border: none; cursor: pointer; font-family: inherit; transition: opacity 0.2s; text-decoration: none; }
.anez-btn-orange:hover { opacity: 0.85; color: #fff; }
.anez-btn-orange.full { width: 100%; box-sizing: border-box; }

/* ============ 診断ポップアップ ============ */
.anez-diag-overlay { display: none; position: fixed; inset: 0; background: rgba(60,20,5,.45); z-index: 9999; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.anez-diag-overlay.open { display: flex; }
.anez-diag-box { background: #fff; border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(60,20,5,.25); }
.anez-diag-header { background: var(--beige-md); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1; }
.anez-diag-header .dh-title { font-size: 15px; font-weight: 700; color: var(--dark-br); }
.anez-diag-close { width: 30px; height: 30px; border-radius: 50%; background: var(--border); font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; transition: background 0.2s; flex-shrink: 0; }
.anez-diag-close:hover { background: var(--gold-bd); }
.anez-diag-progress { display: flex; gap: 8px; justify-content: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.anez-prog-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; transition: background .3s; }
.anez-prog-dot.done { background: var(--gold-bd); }
.anez-prog-dot.current { background: var(--orange); transform: scale(1.2); }
.anez-diag-body { padding: 20px; }
.anez-q-label { font-size: 11px; color: var(--orange); font-weight: 700; margin-bottom: 6px; }
.anez-q-text { font-size: 15px; font-weight: 700; color: var(--dark-br); margin-bottom: 16px; line-height: 1.5; }
.anez-age-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.anez-age-chip { background: var(--beige-md); border: 1.5px solid var(--border); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--mid-br); padding: 10px 18px; cursor: pointer; transition: background .2s, border-color .2s; font-family: inherit; min-height: 44px; display: flex; align-items: center; }
.anez-age-chip:hover, .anez-age-chip.selected { background: var(--orange); border-color: var(--orange); color: #fff; }
.anez-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.anez-choice-btn { background: var(--beige-lt); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 10px; font-size: 12px; font-weight: 600; color: var(--dark-br); text-align: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s; line-height: 1.5; font-family: inherit; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.anez-choice-btn:hover, .anez-choice-btn.selected { background: var(--orange); border-color: var(--orange); color: #fff; }
.anez-result-screen { text-align: center; padding: 8px 0; }
.anez-result-emoji { font-size: 56px; margin-bottom: 8px; }
.anez-result-label { font-size: 11px; color: var(--mid-br); font-weight: 600; margin-bottom: 4px; }
.anez-result-type { font-size: 20px; font-weight: 900; color: var(--dark-br); margin-bottom: 10px; }
.anez-result-desc { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 16px; }
.anez-result-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; text-align: left; }
.anez-result-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 8px; }
.anez-rc-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; margin-top: 2px; }
.anez-rc-badge.article { background: #E8F3DE; color: #4a7a2f; }
.anez-rc-badge.service { background: #FDE8D0; color: var(--orange); }
.anez-rc-badge.today { background: #E8EEF8; color: #3a5fa8; }
.anez-rc-title { font-size: 12px; font-weight: 600; color: var(--dark-br); line-height: 1.5; }
.anez-result-actions { display: flex; flex-direction: column; gap: 10px; }
.anez-btn-share { background: #1da1f2; color: #fff; font-size: 13px; font-weight: 700; padding: 12px; border-radius: 24px; width: 100%; border: none; cursor: pointer; font-family: inherit; }
.anez-btn-retry { background: var(--beige-md); border: 1.5px solid var(--border); color: var(--dark-br); font-size: 13px; font-weight: 600; padding: 10px; border-radius: 24px; width: 100%; cursor: pointer; font-family: inherit; }

/* ============ Cocoon カスタマイズ ============ */
.entry-card-wrap { border-radius: 12px !important; border: 0.5px solid #e0e0e0 !important; }
.entry-card-wrap:hover { border-color: var(--gold-bd) !important; }
.cat-label { background: var(--orange) !important; }
.btn-wrap a, .more-btn { background: var(--orange) !important; color: #fff !important; border-radius: 20px !important; }
#footer { background: var(--beige-md) !important; border-top: 1.5px solid var(--border) !important; }
#footer-bottom { background: var(--beige-md) !important; }
.footer-copyright { color: var(--mid-br) !important; }

/* ============ レスポンシブ（タブレット） ============ */
@media screen and (max-width: 1023px) {
  .anez-age-grid { grid-template-columns: repeat(2,1fr); }
  .anez-panels-wrap { padding: 16px; }
}

/* ============ レスポンシブ（スマホ 767px以下） ============ */
@media screen and (max-width: 767px) {
  /* ハンバーガー */
  .anez-hamburger { display: flex; }
  #navi .navi-in { display: none; }
  #navi .navi-in.open { display: block; }
  #navi .navi-in > ul { flex-direction: column !important; }
  #navi .navi-in > ul > li { border-bottom: 1px solid var(--border); }
  #navi .navi-in > ul > li > a { display: block !important; padding: 14px 16px !important; font-size: 14px !important; }

  /* ヒーロー */
  .anez-hero-photo { min-height: 180px; }
  .anez-hero-inner { flex-direction: column; align-items: flex-start; padding: 16px; min-height: unset; gap: 12px; }
  .anez-hero-title { font-size: 20px; }
  .anez-hero-sub { font-size: 12px; max-width: 100%; }
  .anez-hero-diag-card { width: 100%; min-width: unset; padding: 12px 16px; box-sizing: border-box; }

  /* タブ */
  .anez-tab-item { padding: 8px 12px 6px; }
  .anez-tab-icon { width: 30px; height: 30px; font-size: 15px; }
  .anez-tab-label { font-size: 10px; }
  .anez-tab-sub { display: none; }

  /* コンテンツ 1カラム */
  .anez-panels-wrap { flex-direction: column; padding: 12px; gap: 16px; }
  .anez-side-col { width: 100%; }

  /* 年齢グリッド */
  .anez-age-grid { grid-template-columns: repeat(2,1fr); }

  /* 診断ポップアップ */
  .anez-diag-box { max-height: 95vh; }
  .anez-diag-body { padding: 14px; }
  .anez-q-text { font-size: 14px; }
  .anez-choice-grid { grid-template-columns: 1fr; gap: 8px; }
  .anez-choice-btn { min-height: 52px; font-size: 13px; }
  .anez-age-chip { min-height: 44px; font-size: 14px; }
}


/* コンパクトヘッダー */
#header-container{background-image:none!important;background-color:#fff!important;min-height:0!important;height:auto!important;}
#header-container-in{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;padding:10px 24px!important;min-height:0!important;height:auto!important;background:#fff!important;}
#header{flex:1 1 auto!important;min-width:0!important;text-align:left!important;padding:0!important;float:none!important;background:transparent!important;}
.header-in{display:flex!important;flex-direction:column!important;align-items:flex-start!important;}
.logo-header{order:1!important;}
.site-name-text{font-size:18px!important;color:#3c1a00!important;}
.tagline{order:2!important;background:transparent!important;background-color:transparent!important;color:#888!important;font-size:11px!important;padding:2px 0 0!important;text-align:left!important;}
#navi{flex:0 0 auto!important;width:auto!important;float:none!important;margin:0!important;padding:0!important;background:transparent!important;}
.navi-in{text-align:right!important;background:transparent!important;}
.navi-in .menu-wrap ul{background:transparent!important;}
