/*
Theme Name: Cocoon Child
Template: cocoon-master
Version: 3.0.0
Description: お金の設計室 - 童話の森 × 資産形成テーマ
*/

/* ============================================
   カラー変数
   ============================================ */
:root {
  --green-main:    #66BB6A;
  --green-light:   #81C784;
  --green-pale:    #A5D6A7;
  --green-mist:    #C8E6C9;
  --green-deep:    #388E3C;
  --bg-base:       #F9FBF7;
  --bg-leaf:       #F1F8E9;
  --bg-white:      #FDFFFE;
  --text-main:     #37474F;
  --text-mid:      #546E7A;
  --text-muted:    #90A4AE;
  --border-soft:   #DCEDC8;
  --accent-warm:   #FFB74D;
  --shadow-soft:   rgba(102,187,106,0.13);
  --shadow-hover:  rgba(102,187,106,0.25);
  --radius-card:   14px;
  --radius-btn:    50px;
  --font-heading:  'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
  --font-body:     'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
}

/* ============================================
   ベース
   ============================================ */
body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%2381C784' stroke-opacity='0.07' stroke-width='1'%3E%3Cellipse cx='40' cy='30' rx='18' ry='10' transform='rotate(-25 40 30)'/%3E%3Cline x1='40' y1='30' x2='40' y2='55' stroke-width='0.8'/%3E%3Cellipse cx='140' cy='80' rx='14' ry='8' transform='rotate(20 140 80)'/%3E%3Cline x1='140' y1='80' x2='140' y2='100'  stroke-width='0.8'/%3E%3Cellipse cx='30' cy='150' rx='16' ry='9' transform='rotate(-15 30 150)'/%3E%3Cline x1='30' y1='150' x2='30' y2='172'  stroke-width='0.8'/%3E%3Cellipse cx='170' cy='160' rx='12' ry='7' transform='rotate(30 170 160)'/%3E%3Cline x1='170' y1='160' x2='170' y2='178' stroke-width='0.8'/%3E%3Cellipse cx='100' cy='110' rx='10' ry='6' transform='rotate(-40 100 110)'/%3E%3Cline x1='100' y1='110' x2='100' y2='128' stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--text-main);
}

/* ============================================
   フォント適用
   ============================================ */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.tool-name,
.nc-title,
.budget-amount {
  font-family: var(--font-heading);
}

/* ============================================
   アニメーション
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes leafFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0);   }
  50%       { transform: rotate( 3deg) translateY(-4px); }
}

/* ============================================
   共通レイアウト
   ============================================ */
.front-page-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

.section-inner {
  max-width: 640px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.5;
}

.section-sub {
  text-align: center;
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

/* SVG 葉モチーフ区切り */
.leaf-divider {
  text-align: center;
  margin: 10px 0 18px;
  line-height: 1;
}

.leaf-divider svg {
  width: 120px;
  height: 20px;
  opacity: 0.45;
}

/* ============================================
   1. ヒーローエリア
   ============================================ */
.hero-section {
  background: linear-gradient(150deg, #A5D6A7 0%, #81C784 40%, #66BB6A 100%);
  color: var(--text-main);
  padding: 56px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 木漏れ日ハイライト */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 25%, rgba(255,255,255,0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(255,255,255,0.15) 0%, transparent 45%);
  pointer-events: none;
}

/* 下部ウェーブ */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--bg-base);
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* 装飾葉（背景） */
.hero-leaf {
  position: absolute;
  font-size: 3rem;
  opacity: 0.12;
  pointer-events: none;
  animation: leafFloat 5s ease-in-out infinite;
}
.hero-leaf-1 { top: 8%;   left: 3%;  font-size: 2.4rem; animation-delay: 0s;   }
.hero-leaf-2 { top: 15%;  right: 4%; font-size: 3.2rem; animation-delay: 1.2s; }
.hero-leaf-3 { bottom: 22%; left: 6%;  font-size: 2rem;   animation-delay: 2.4s; }
.hero-leaf-4 { bottom: 18%; right: 6%; font-size: 2.6rem; animation-delay: 0.6s; }

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-btn);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 18px;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  color: var(--green-deep);
  backdrop-filter: blur(6px);
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-title {
  font-size: clamp(1.55rem, 6.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--green-deep);
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-title .accent {
  display: inline-block;
  background: rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 0 6px;
  color: var(--green-deep);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #E8F5E9 100%);
  color: var(--green-deep);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(56,142,60,0.22), 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.22s ease;
  letter-spacing: 0.03em;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero-cta:hover,
.hero-cta:focus {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(56,142,60,0.3);
  color: var(--green-deep);
  text-decoration: none;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-mid);
  opacity: 0.75;
  animation: fadeInUp 0.6s 0.5s ease both;
}

/* ============================================
   2. 悩み別入口ボタン
   ============================================ */
.worry-section {
  background: var(--bg-white);
  padding: 48px 16px;
}

.worry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.worry-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-leaf);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 20px 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px var(--shadow-soft);
  transition: all 0.2s ease;
}

.worry-btn:hover,
.worry-btn:focus {
  background: var(--bg-white);
  border-color: var(--green-light);
  box-shadow: 0 5px 18px var(--shadow-hover);
  transform: translateY(-3px);
  color: var(--green-deep);
  text-decoration: none;
}

.worry-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.worry-label {
  text-align: center;
  line-height: 1.4;
  color: var(--text-mid);
}

.worry-btn:hover .worry-label {
  color: var(--green-deep);
}

.worry-btn.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding: 17px;
}

/* ============================================
   3. 4大資産の平均予算額（NEW）
   ============================================ */
.budget-section {
  background: var(--bg-leaf);
  padding: 48px 16px 40px;
  position: relative;
}

.budget-section::before,
.budget-section::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-mist), transparent);
  position: absolute;
  left: 0;
}
.budget-section::before { top: 0; }
.budget-section::after  { bottom: 0; }

.budget-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.budget-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 18px 18px 14px;
  box-shadow: 0 2px 10px var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.budget-card:hover {
  box-shadow: 0 5px 18px var(--shadow-hover);
  transform: translateY(-2px);
}

.budget-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-icon {
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
}

.budget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0;
}

.budget-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--bg-leaf);
  border-left: 4px solid var(--green-light);
  padding: 6px 12px;
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}

.budget-amount small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-mid);
  margin-top: 2px;
}

.budget-note {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

.budget-source {
  font-size: 0.7rem;
  color: #999;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #e0e0e0;
}

.budget-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 18px;
}

/* ============================================
   4. ツール一覧カード
   ============================================ */
.tools-section {
  background: var(--bg-base);
  padding: 48px 16px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.tool-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 12px var(--shadow-soft);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  display: block;
  transition: all 0.22s ease;
}

.tool-card:hover,
.tool-card:focus {
  box-shadow: 0 8px 26px var(--shadow-hover);
  transform: translateY(-4px);
  color: var(--text-main);
  text-decoration: none;
}

.tool-card-header {
  background: linear-gradient(100deg, var(--green-deep) 0%, var(--green-main) 100%);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-icon { font-size: 1.4rem; }

.tool-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.tool-card-body {
  padding: 14px 18px;
}

.tool-card-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 10px;
}

.tool-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tag {
  background: var(--bg-leaf);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-soft);
}

.tool-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-main);
  background: #FAFFF8;
}

.tool-card-cta::after {
  content: '→';
  transition: transform 0.15s;
}

.tool-card:hover .tool-card-cta::after {
  transform: translateX(4px);
}

.tool-card-placeholder {
  background: var(--bg-white);
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-card);
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.placeholder-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  opacity: 0.4;
}

/* ============================================
   5. 中立宣言
   ============================================ */
.neutral-section {
  background: linear-gradient(150deg, #388E3C 0%, #66BB6A 100%);
  color: #fff;
  padding: 48px 20px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.neutral-section::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--bg-base);
  clip-path: ellipse(60% 100% at 50% 0%);
}

.neutral-section .section-title {
  color: #fff;
  padding-top: 10px;
}

.neutral-section .section-sub {
  color: rgba(255,255,255,0.78);
}

.neutral-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.neutral-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.nc-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.nc-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: #fff;
}

.nc-desc {
  font-size: 0.8rem;
  opacity: 0.78;
  line-height: 1.65;
}

/* ============================================
   タブレット以上 (600px+)
   ============================================ */
@media (min-width: 600px) {
  .hero-section       { padding: 80px 40px 72px; }

  .worry-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 560px;
  }
  .worry-btn.wide { grid-column: auto; }

  .budget-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
  }

  .neutral-cards {
    grid-template-columns: repeat(3, 1fr);
    max-width: 620px;
  }
}

/* ============================================
   Cocoon 上書き
   ============================================ */
.home .site-content,
.front-page .site-content {
  padding: 0;
  max-width: 100%;
}
.home .main,
.front-page .main {
  padding: 0;
  width: 100%;
  max-width: 100%;
}
.home .breadcrumb,
.home .article-title,
.front-page .breadcrumb,
.front-page .article-title {
  display: none;
}

/* ヘッダー */
#header {
  background: linear-gradient(100deg, #A5D6A7 0%, #81C784 100%) !important;
}
.navi-in > ul > li > a,
.navi-in > ul > li > span {
  color: var(--green-deep) !important;
  font-family: var(--font-heading);
  font-weight: 700;
}
.navi-in > ul > li > a:hover {
  background: rgba(255,255,255,0.45) !important;
  border-radius: 6px;
  color: var(--green-deep) !important;
}

/* フッター */
#footer {
  background: #388E3C !important;
  color: rgba(255,255,255,0.75) !important;
}
