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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ==========================================================
   サイトタイトル完全非表示 - 子テーマ用
   ========================================================== */

/* 全てのサイトタイトル要素を非表示 */
.site-name,
.site-title,
.brand-text,
.site-name-text,
.site-branding .site-title,
.site-branding h1,
.header-container .site-name,
.header-container .site-title,
.header-top .site-name,
.header-top .site-title,
h1.site-name,
h1.site-title,
.site-name a,
.site-title a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0px !important;
    width: 0px !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ==========================================================
   新しいヒーローセクション - 完全リニューアル版
   ========================================================== */

.hero-new {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  padding: 80px 0 60px 0;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* メインビジュアル */
.hero-main {
  text-align: center;
  margin-bottom: 50px;
}

.hero-badge-wrapper {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #3b82f6;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  color: #1e40af;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.hero-badge.premium {
  border-color: #f59e0b;
  color: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.hero-badge.premium:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.badge-icon {
  font-size: 18px;
}

.hero-main-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: #1e293b;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.title-accent {
  color: #3b82f6;
  position: relative;
}

.title-accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

.hero-lead-text {
  font-size: 20px;
  color: #64748b;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.hero-lead-text strong {
  color: #1e293b;
  font-weight: 600;
}

/* 特徴カード */
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 15px;
  display: block;
}

.feature-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* CTA エリア */
.hero-cta-area {
  text-align: center;
}

.cta-main {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cta-primary-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 20px 35px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.cta-primary-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
  color: #ffffff;
}

.cta-secondary-btn {
  background: #ffffff;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  padding: 18px 33px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.cta-secondary-btn:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-icon {
  font-size: 20px;
}

.btn-content strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.btn-content small {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

/* 信頼シグナル */
.cta-trust-signals {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.trust-icon {
  font-size: 16px;
}

/* 背景装飾 */
.hero-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
}

.bg-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  height: 1px;
}

.line-1 {
  top: 20%;
  left: 0;
  right: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-new {
    padding: 60px 0 40px 0;
  }
  
  .hero-main-title {
    font-size: 32px;
  }
  
  .hero-lead-text {
    font-size: 18px;
  }
  
  .hero-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-main {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-trust-signals {
    gap: 20px;
  }
  
  .hero-badge-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 0 15px;
  }
  
  .hero-main-title {
    font-size: 28px;
  }
  
  .feature-card {
    padding: 25px 20px;
  }
}


/* ==========================================================
   ヒーローセクション - 1行ボタンレイアウト用CSS
   ========================================================== */

/* 1行ボタンレイアウト */
.cta-main-single-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

/* コンパクトなプライマリボタン */
.cta-primary-btn-compact {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.cta-primary-btn-compact:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

/* コンパクトなセカンダリボタン */
.cta-secondary-btn-compact {
  background: #ffffff;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  padding: 13px 23px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cta-secondary-btn-compact:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* ボタンアイコンのスタイル */
.cta-primary-btn-compact .btn-icon,
.cta-secondary-btn-compact .btn-icon {
  font-size: 18px;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .cta-main-single-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .cta-primary-btn-compact,
  .cta-secondary-btn-compact {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cta-primary-btn-compact,
  .cta-secondary-btn-compact {
    font-size: 14px;
    padding: 12px 20px;
  }
}


/* ==========================================================
   よくある質問セクション - シンプル版
   ========================================================== */

.faq-simple {
  background: #f8fafc;
  padding: 80px 0;
}

.faq-simple .container {
  max-width: 1200px;  /* 900px → 1200px に変更 */
  margin: 0 auto;
  padding: 0 20px;
}


.faq-simple .section-title {
  text-align: center;
  font-size: 36px;
  color: #1e293b;
  margin-bottom: 60px;
  font-weight: 700;
}

.faq-simple-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.faq-simple-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.faq-simple-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #3b82f6;
}

.faq-simple-question {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.question-marker {
  background: #3b82f6;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.faq-simple-question h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  flex: 1;
}

.faq-simple-answer {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.answer-marker {
  background: #10b981;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.faq-simple-answer p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 16px;
  flex: 1;
}



/* モバイル対応 */
@media (max-width: 768px) {
  .faq-simple {
    padding: 60px 0;
  }
  
  .faq-simple .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .faq-simple-item {
    padding: 30px 25px;
  }
  
  .faq-simple-question h3 {
    font-size: 18px;
  }
  
  .faq-simple-answer p {
    font-size: 15px;
    line-height: 1.6;  /* 追加：モバイルでの行間調整 */
  }

  
  .question-marker,
  .answer-marker {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .faq-simple-item {
    padding: 25px 20px;
  }
  
  .faq-simple-question h3 {
    font-size: 16px;
  }
  
  .faq-simple-answer p {
    font-size: 14px;
  }
}

/* ==========================================================
   よくある質問 - 横幅拡張修正
   ========================================================== */

/* コンテナをさらに拡張 */
.faq-simple .container {
  max-width: 1400px !important;  /* 1200px → 1400px に拡張 */
  margin: 0 auto;
  padding: 0 30px;  /* 左右の余白を増やす */
}

/* FAQアイテムの内側パディングを調整 */
.faq-simple-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 50px;  /* 左右のパディングを増やす */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

/* Q/Aマーカーとテキストの間隔を調整 */
.faq-simple-question,
.faq-simple-answer {
  gap: 20px;  /* 15px → 20px に拡大 */
}

/* 回答テキストをより横幅いっぱいに */
.faq-simple-answer p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;  /* 1.7 → 1.8 に調整 */
  font-size: 16px;
  flex: 1;
  word-break: keep-all;
  overflow-wrap: break-word;
  max-width: 100%;  /* 追加：横幅を最大まで使用 */
  white-space: normal;  /* 追加：自然な改行 */
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .faq-simple .container {
    max-width: 100% !important;
    padding: 0 40px;
  }
  
  .faq-simple-item {
    padding: 35px 40px;
  }
}

/* モバイル対応の強化 - 完全はみ出し防止 */
@media (max-width: 768px) {
  .faq-simple .container {
    max-width: calc(100vw - 4px) !important;  /* ビューポート幅から4px引く */
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  
  .faq-simple-item {
    padding: 10px 2px !important;  /* 12px 5px → 10px 2px */
    margin: 0 0 15px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .faq-simple-question,
  .faq-simple-answer {
    gap: 3px !important;  /* 5px → 3px */
  }
}

/* 小さなモバイル対応 */
@media (max-width: 480px) {
  .faq-simple .container {
    max-width: calc(100vw - 2px) !important;  /* ビューポート幅から2px引く */
    padding: 0 !important;
    margin: 0 auto !important;
  }
  
  .faq-simple-item {
    padding: 8px 1px !important;  /* 10px 3px → 8px 1px */
    margin: 0 0 12px 0 !important;
  }
  
  .faq-simple-question,
  .faq-simple-answer {
    gap: 2px !important;  /* 3px → 2px */
  }
  
  .question-marker,
  .answer-marker {
    width: 18px !important;  /* 20px → 18px */
    height: 18px !important;
    font-size: 9px !important;  /* 10px → 9px */
    flex-shrink: 0 !important;
  }
}

/* 超小さなモバイル対応 */
@media (max-width: 375px) {
  .faq-simple .container {
    max-width: calc(100vw - 1px) !important;  /* ビューポート幅から1px引く */
    padding: 0 !important;
    margin: 0 auto !important;
  }
  
  .faq-simple-item {
    padding: 6px 0px !important;  /* 8px 2px → 6px 0px（左右パディングなし） */
    margin: 0 0 10px 0 !important;
  }
  
  .faq-simple-question,
  .faq-simple-answer {
    gap: 1px !important;  /* 2px → 1px */
  }
  
  .question-marker,
  .answer-marker {
    width: 16px !important;  /* 18px → 16px */
    height: 16px !important;
    font-size: 8px !important;  /* 9px → 8px */
  }
}

/* 極小モバイル対応 */
@media (max-width: 320px) {
  .faq-simple .container {
    max-width: 100vw !important;  /* ビューポート幅そのまま */
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
  }
  
  .faq-simple-item {
    padding: 4px 0px !important;  /* 6px 1px → 4px 0px（完全にパディングなし） */
    margin: 0 0 8px 0 !important;
    width: 100% !important;
    border-radius: 8px !important;  /* 16px → 8px 角を小さく */
  }
  
  .faq-simple-question,
  .faq-simple-answer {
    gap: 0px !important;  /* 1px → 0px（間隔なし） */
    padding: 0 2px !important;  /* 最小限のテキスト余白 */
  }
  
  .question-marker,
  .answer-marker {
    width: 14px !important;  /* 16px → 14px */
    height: 14px !important;
    font-size: 7px !important;  /* 8px → 7px */
    flex-shrink: 0 !important;
  }
  
  .faq-simple-question h3 {
    font-size: 12px !important;  /* 13px → 12px */
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .faq-simple-answer p {
    font-size: 11px !important;  /* 12px → 11px */
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* 全体的な強制設定 */
.faq-simple,
.faq-simple * {
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.faq-simple {
  width: 100% !important;
  max-width: 100vw !important;
}


/* ==========================================================
   無料相談セクション - 白基調デザイン修正
   ========================================================== */

/* 無料相談セクション全体を白基調に */
.contact-cta,
.consultation-section,
.entry-content > *:last-child,
section:last-of-type,
.wp-block-group:last-of-type,
.entry-content > h2:contains("まずは無料相談から") + *,
.entry-content > *:has-text("まずは無料相談から"),
[class*="consultation"],
[class*="contact"] {
    background-color: #ffffff !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f5f9 100%) !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    border-radius: 16px !important;
    padding: 60px 40px !important;
    margin: 40px auto !important;
}

/* 無料相談セクションの見出し */
.contact-cta h2,
.consultation-section h2,
.entry-content > *:last-child h2,
section:last-of-type h2 {
    color: #1e293b !important;
    background: none !important;
    border: none !important;
    text-align: center !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
}

/* 無料相談セクションの特徴アイコン部分 */
.contact-cta .features,
.consultation-section .features,
.entry-content > *:last-child .features {
    background: rgba(248,249,250,0.8) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
    margin: 30px 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
}

.contact-cta .features > *,
.consultation-section .features > * {
    color: #1e293b !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* 事務所情報部分 */
.contact-cta .office-info,
.consultation-section .office-info,
.entry-content > *:last-child .office-info {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    margin-top: 30px !important;
}

.contact-cta .office-info h3,
.consultation-section .office-info h3 {
    color: #1e293b !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    border: none !important;
    background: none !important;
}

/* 全ての紫色系背景を強制的に白系に変更 */
*[style*="purple"],
*[style*="#purple"],
*[style*="rgba(128,0,128"],
*[style*="rgb(128,0,128"],
*[class*="purple"],
div[style*="background-color: purple"],
div[style*="background: purple"],
section[style*="background-color: purple"],
section[style*="background: purple"] {
    background-color: #ffffff !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .contact-cta,
    .consultation-section,
    .entry-content > *:last-child {
        padding: 40px 20px !important;
        margin: 20px 10px !important;
    }
    
    .contact-cta .features,
    .consultation-section .features {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px 15px !important;
    }
    
    .contact-cta h2,
    .consultation-section h2 {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .contact-cta,
    .consultation-section,
    .entry-content > *:last-child {
        padding: 30px 15px !important;
        margin: 15px 5px !important;
    }
}
