@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){
  /*必要ならばここにコードを書く*/
}
/* ===========================
   知ることゾーン：3カラムカード
   =========================== */
.knowledge-cards.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}

.knowledge-cards .wp-block-column {
  flex: 1 1 calc(33.333% - 24px);
  margin: 0;
}

/* カード全体 */
.knowledge-cards .card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

/* サムネイル */
.knowledge-cards .card-thumb img {
  width: 100%;
  display: block;
}

/* 本文部分 */
.knowledge-cards .card-body {
  padding: 16px 16px 18px;
}

.knowledge-cards .card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.knowledge-cards .card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* ボタン */
.knowledge-cards .card-button {
  display: inline-block;
  margin-top: auto;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffa726;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ▼ PC → 3カラム、タブレット → 2カラム */
@media (max-width: 1024px) {
  .knowledge-cards .wp-block-column {
    flex: 1 1 calc(50% - 24px);
  }
}

/* ▼ スマホ → 1カラム */
@media (max-width: 640px) {
  .knowledge-cards.wp-block-columns {
    display: block;
  }
  .knowledge-cards .wp-block-column {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
  }
}
/* ▼「こんなお悩みはありませんか？」の3枚カード専用デザイン */

/* カード全体（aタグ） */
.knowledge-cards .card-link {
  display: block;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 画像の角丸をそろえる */
.knowledge-cards .card-thumb img {
  display: block;
  width: 100%;
  border-radius: 16px 16px 0 0;
}

/* テキスト部分の余白 */
.knowledge-cards .card-body {
  padding: 14px 18px 18px;
}

/* タイトル余白微調整 */
.knowledge-cards .card-title {
  margin-bottom: 8px;
}

/* PCホバー時：ふわっと浮かせる */
.knowledge-cards .card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

/* スマホ最適化 */
@media (max-width: 768px) {
  .knowledge-cards .card-link {
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
  }

  .knowledge-cards .card-body {
    padding: 12px 16px 16px;
  }
}
/* ============================
   H2 上品ライン（京屋根サイト仕様）
============================ */
.entry-content h2 {
  position: relative;
  padding: 0.6em 0.8em 0.6em 1em;
  font-size: 1.4em;
  font-weight: 700;
  border-left: 4px solid #6c8dad; /* くすみブルー */
  background: #f9fbff; /* ほんのり淡いブルー背景で上品 */
  border-radius: 6px;
  margin-top: 2.2em;   /* 上にゆとりを作って見やすく */
  margin-bottom: 1.2em;
}
/* ============================
   H3 控えめライン（H2との統一感）
============================ */
.entry-content h3 {
  padding: 0.4em 0.6em 0.4em 0.8em;
  font-size: 1.2em;
  font-weight: 600;
  border-left: 3px solid #c7d7e8; /* 薄いブルー */
  background: #fcfdff;
  border-radius: 4px;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}
/* ============================
   スマホ用の最終仕上げ
============================ */
@media (max-width: 768px) {

  /* H2：少しだけ文字と上下余白を小さく */
  .entry-content h2 {
    font-size: 1.25em;
    margin-top: 1.8em;
    margin-bottom: 1em;
    padding: 0.5em 0.7em 0.5em 0.9em;
  }

  /* H3：こちらも控えめに */
  .entry-content h3 {
    font-size: 1.1em;
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    padding: 0.35em 0.6em 0.35em 0.8em;
  }

  /* お悩みカード本文の行間と文字サイズを少しだけ詰める */
  .knowledge-cards .card-body {
    padding: 10px 14px 14px;
  }

  .knowledge-cards .card-excerpt {
    font-size: 0.95em;
    line-height: 1.7;
  }
}
/* ===========================
   代表プロフィールカード
=========================== */
.profile-card {
  display: flex;
  gap: 24px;
  padding: 20px 22px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  margin: 40px 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* 左側：賞状3枚＋人物の横長写真（角丸） */
.profile-photo-wide {
  flex: 0 0 40%;
  min-width: 260px;
}

.profile-photo-wide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;  /* 角丸長方形 */
  object-fit: cover;
}

/* 右側：テキスト部分 */
.profile-body {
  flex: 1;
  min-width: 260px;
}

.profile-name {
  font-size: 1.4rem;
  margin-bottom: 10px;
  border-left: 6px solid #6aa3ff;
  padding-left: 12px;
}

.profile-text {
  margin-bottom: 12px;
  line-height: 1.8;
}

.profile-qualification h4 {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  border-left: 4px solid #ffa740;
  padding-left: 8px;
}

.profile-qualification ul {
  margin: 0;
  padding-left: 18px;
}

.profile-qualification li {
  margin-bottom: 4px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
  }

  .profile-photo-wide {
    width: 100%;
  }

  .profile-photo-wide img {
    border-radius: 14px;
  }
}
.handwritten-note {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 5px;
  margin-bottom: 25px;
}
/* 直筆メッセージ説明文デザイン */
.handwritten-note {
  text-align: center;         /* 中央揃え */
  font-size: 14px;            /* 文字サイズ */
  color: #777;                /* 薄めのグレー */
  margin-top: 8px;            /* 上の余白 */
  margin-bottom: 22px;        /* 下の余白 */
  line-height: 1.6;           /* 読みやすく */
}
/* 直筆メッセージの画像調整 */
.handwritten-img {
  display: block;
  margin: 18px auto 4px; /* 上18px、下4px、左右中央寄せ */
  max-width: 600px;
  width: 100%;
  height: auto;
}

.cta-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #FF8C42;
  color: #fff;
  text-align: center;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: 0.2s;
}

.cta-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #FF8C42;
  color: #fff;
  text-decoration: none;
  padding: 18px 0;
  font-size: 19px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 16px; /* ←ボタン間隔 */
}

.cta-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to bottom, #ffb36b, #ff7a1f);
  color: #fff;
  text-decoration: none;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow:
    0 6px 12px rgba(0,0,0,0.22),
    inset 0 3px 6px rgba(255,255,255,0.8),
    inset 0 -3px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 20px;
}

/* CTA全体のラッパー */
.cta-buttons {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* メイン（オレンジ） */
.cta-main {
  display: block;
  background: linear-gradient(180deg, #ffa64d 0%, #ff7a00 100%);
  color: #fff;
  text-align: center;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(255, 140, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* メインボタン：ホバー */
.cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(255, 140, 0, 0.45);
}

/* サブ（グレー） */
.cta-sub {
  display: block;
  background: #f2f2f2;
  color: #555;
  text-align: center;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* サブボタン：ホバー */
.cta-sub:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* アイコン（メイン） */
.cta-icon {
  margin-right: 8px;
  font-size: 18px;
}

/* アイコン（サブ） */
/* ▼ 相談ボタン（グレー）をくっきり＆立体感アップ */
.kyouto-cta-buttons .cta-btn-gray {
  display: block;
  width: 100%;
  max-width: 480px;        /* ★オレンジと同じ最大幅 */
  margin: 0 auto 18px;     /* ★中央寄せ＋下だけ余白 */
  background: #E5E5E5;
  color: #333 !important;
  padding: 18px 0;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1px solid #C8C8C8;       /* 外枠でボタン感UP */
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  position: relative;
}

/* グレーのアイコン位置 */
.kyouto-cta-buttons .cta-btn-gray-icon {
  margin-right: 8px;
  font-size: 18px;
}


/* =====================================================
   京都屋根研究所 共通CTAボタン（オレンジ修正版）
   ===================================================== */
.kyouto-cta-buttons .cta-btn-orange {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 18px;
  padding: 18px 10px;
  background: linear-gradient(180deg, #FFA842, #FF7A00);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 28px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  position: relative;
  border: none;
}

/* ホバー時 少しだけ浮かせる */
.kyouto-cta-buttons .cta-btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.25);
}

/* アイコン位置 */
.kyouto-cta-buttons .cta-icon {
  margin-right: 8px;
  font-size: 18px;
}

/* スマホ時（文字が入り切るように少し調整） */
@media (max-width: 480px) {
  .kyouto-cta-buttons .cta-btn-orange {
    font-size: 16px;
    padding: 16px 8px;
  }
}

/* ▼ 相談ボタン（グレー）のホバー */
.kyouto-cta-buttons .cta-btn-gray:hover {
  background: #F2F2F2;                 /* 少しだけ明るく */
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  border-color: #B5B5B5;               /* 枠も少し濃く */
  transform: translateY(-1px);         /* ちょっと浮く感じ */
  cursor: pointer;
}

/* お悩みカード：親側の“中央寄せ強制”を無効化 */
.onayami-cards{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  text-align: left !important;
}

/* columns（wp-block-columns）が中央寄せされるのを止める */
.onayami-cards .wp-block-columns{
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start !important; /* flex中央を潰す */
  text-align: left !important;
}

/* カラム内も左寄せ固定 */
.onayami-cards .wp-block-column,
.onayami-cards .wp-block-column *{
  text-align: left !important;
}
