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

/************************************
** ここからカスタムCSS（FXらいふ 完全版）
************************************/

/* ========== 見出し／ボタン／共通配色 ========== */

/* H2：左ライン、H3：下線（サイト全体） */
.entry-content h2{
  border-left: 5px solid #1E90FF;
  padding-left: 10px;
  font-weight: 700;
}
.entry-content h3{
  border-bottom: 2px solid #FF8C00;
  padding-bottom: 4px;
  font-weight: 700;
}

/* ボタン共通（CocoonのWPボタン含む） */
a.cta-button,
.wp-block-button__link{
  background-color: #1E90FF !important;
  color: #fff !important;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
}
a.cta-button:hover,
.wp-block-button__link:hover{
  background-color: #0f78d1 !important;
}

/* 強調セクション（任意で使うユーティリティ） */
.highlight-section{
  background-color: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

/* FAQ 質問の見出し用（任意） */
.faq-question{
  background-color: #fff8e7;
  padding: 10px;
  border-left: 4px solid #FF8C00;
  margin-bottom: 8px;
}

/* セクション上下余白ユーティリティ（必要なブロックに class="section-padding"） */
.section-padding{ padding: 64px 0; }

/* モバイルの微調整（見出し・ボタンのパディング） */
@media (max-width: 767px){
  .entry-content h2, .entry-content h3{ padding-left: 8px; }
  a.cta-button, .wp-block-button__link{ padding: 10px 16px; }
}

/* ========== ヒーロー（ファーストビュー） ========== */

/* H1：PCは可変、SPは読みやすい固定 */
.mobile-h1{
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}
@media (max-width: 767px){
  .mobile-h1{ font-size: 20px !important; }
}

/* ヒーローの上下余白（カバーブロックに class="hero-cover"） */
.hero-cover{ padding: 100px 0; }
@media (max-width: 767px){
  .hero-cover{ padding: 48px 0; }
}

/* ボタン行（Buttonsブロックに class="hero-btns"） */
.hero-btns{
  display: flex;
  justify-content: center;
  gap: 16px;
}
.hero-btns .wp-block-button__link{
  min-width: 240px;
  text-align: center;
}
@media (max-width: 767px){
  .hero-btns{
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-btns .wp-block-button__link{
    width: 100%;
    max-width: 280px;
  }
}

/* ========== ②「FXらいふ！が選ばれる理由」 ========== */
/* Columns 本体に class="reasons" を付与している前提 */
.reasons.wp-block-columns{
  gap: 24px;
  align-items: stretch; /* 高さ揃えを効かせやすく */
}

/* 各カラムを“同じ高さの器”にする */
.reasons > .wp-block-column{
  display: flex;
}

/* カード枠（各カラム内のグループに class="reason-card"） */
.reasons .reason-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  background: #f7f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

/* 見出し帯（H3に class="reason-title"） */
.reasons .reason-title{
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0ea5e9; /* ブランドに合わせて変更可 */
  color: #fff;
  font-weight: 700;
}

/* 本文（段落に class="reason-desc"） */
.reasons .reason-desc{
  margin: 6px 0 0;
  line-height: 1.8;
}

/* アイコン（画像/SVG）を中央＆統一サイズに（必要に応じて） */
.reasons .reason-card img,
.reasons .reason-card svg{
  display: block;
  margin: 0 auto 10px;
  max-width: 56px;
  height: auto;
}

/* モバイル：縦積み＆余白・文字サイズ最適化 */
@media (max-width: 767px){
  .reasons.wp-block-columns{
    display: block !important;  /* Flex挙動を断ち切って1列化 */
    gap: 0 !important;
  }
  .reasons > .wp-block-column{
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 0 12px !important; /* カード間の縦間隔 */
  }
  .reasons .reason-card{ padding: 16px; }
  .reasons .reason-title{ font-size: 16px; }
  .reasons .reason-desc{ font-size: 14px; }
}

/************************************
** ここまでカスタムCSS（FXらいふ 完全版）
************************************/
