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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ======================================================
   外壁塗装デモ — カラー設計 (ネイビー × オレンジ)
====================================================== */
:root {
  --primary:    #1C3557;
  --primary-lt: #2A4D7F;
  --accent:     #E8620A;
  --accent-lt:  #FF7E30;
  --bg-light:   #F5F7FA;
  --text:       #2C2C2C;
  --text-light: #666666;
}

/* ------  既存ブラウン系カラーの上書き  ------ */
.template-3col-item h3 {
  border-left-color: var(--primary) !important;
  color: var(--primary) !important;
}
.template-3col-btn,
.template-3col-btn:visited {
  background: var(--accent) !important;
  color: #fff !important;
}
.template-3col-btn:hover {
  background: var(--accent-lt) !important;
  opacity: 1 !important;
}
.template-3col-item:hover {
  box-shadow: 0 8px 24px rgba(28, 53, 87, 0.15) !important;
}
.template-cta-box {
  background: var(--bg-light) !important;
  border-color: #c8d8e8 !important;
}
.template-cta-btn,
.template-cta-btn:visited {
  background: var(--accent) !important;
  color: #fff !important;
}
.template-cta-btn:hover {
  background: var(--accent-lt) !important;
}
.btn-mail, .mail-btn {
  background: var(--accent) !important;
}
.btn-tel, .tel-btn {
  background: var(--primary) !important;
}
.main .btn-wrap > a,
.wp-block-button__link,
.wp-element-button {
  background-color: var(--accent) !important;
  border-color:     var(--accent) !important;
  color: #fff !important;
}
.main .btn-wrap > a:hover,
.wp-block-button__link:hover {
  background-color: var(--accent-lt) !important;
  border-color:     var(--accent-lt) !important;
  opacity: 1 !important;
}

/* ------  実績バー  ------ */
.koto-stats-bar {
  background: var(--primary) !important;
}
.koto-stats-number em {
  color: var(--accent) !important;
}

/* ------  FV キャッチコピー強化  ------ */
.koto-fv-heading {
  font-size: 2rem !important;
  line-height: 1.65 !important;
  font-weight: bold !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75) !important;
  color: #fff !important;
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  .koto-fv-heading { font-size: 1.45rem !important; }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .koto-fv-heading { font-size: 1.25rem !important; }
}

/* ======================================================
   FV リビルド — バッジ・キャッチコピー・CTAボタン
====================================================== */

/* FV最小高さ */
.wp-block-cover.alignfull {
  min-height: 640px !important;
}
@media (max-width: 834px) {
  .wp-block-cover.alignfull { min-height: 460px !important; }
}
@media (max-width: 480px) {
  .wp-block-cover.alignfull { min-height: 360px !important; }
}

/* FVバッジ行 */
.fv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 24px;
}
.fv-badge {
  background: rgba(232, 98, 10, 0.88);
  color: #fff;
  font-size: 0.73rem;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* FVメインコピー */
.fv-main-copy {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
  text-align: center !important;
  color: #fff !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85) !important;
  margin: 0 auto 16px !important;
}
@media (max-width: 834px) { .fv-main-copy { font-size: 1.7rem !important; } }
@media (max-width: 480px) { .fv-main-copy { font-size: 1.35rem !important; } }

/* FVサブコピー */
.fv-sub-copy {
  font-size: 1.0rem !important;
  line-height: 1.8 !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6) !important;
  margin: 0 auto 32px !important;
}

/* FV CTAボタン群 */
.fv-cta-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.fv-cta-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 17px 36px;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(232, 98, 10, 0.55);
  letter-spacing: 0.05em;
  transition: 0.2s ease;
  white-space: nowrap;
}
.fv-cta-primary:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 98, 10, 0.65);
}
.fv-cta-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 15px 34px;
  border-radius: 6px;
  text-decoration: none !important;
  letter-spacing: 0.05em;
  transition: 0.2s ease;
  white-space: nowrap;
}
.fv-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .fv-cta-primary,
  .fv-cta-secondary {
    width: 100%;
    text-align: center;
    padding: 15px 16px;
  }
}

/* ======================================================
   実績バー v2 — アクセント上ボーダー＋区切り線
====================================================== */
.koto-stats-bar--v2 {
  border-top: 4px solid var(--accent) !important;
}
.koto-stats-bar--v2 .koto-stats-item {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.koto-stats-bar--v2 .koto-stats-item:last-child {
  border-right: none;
}

/* ======================================================
   写真付きサービスカード
====================================================== */
.service-section {
  padding: 64px 0;
  background: var(--bg-light);
}
.service-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.service-section__title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}
.service-section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(28, 53, 87, 0.18);
}
.service-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.service-card__body {
  padding: 22px 20px 24px;
}
.service-card__title {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}
.service-card__text {
  font-size: 0.875rem;
  line-height: 1.78;
  color: #555;
  margin: 0 0 14px;
}
.service-card__btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: bold;
  transition: background 0.2s;
}
.service-card__btn:hover {
  background: var(--accent-lt);
}
@media (max-width: 768px) {
  .service-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-section { padding: 40px 0; }
}

/* ======================================================
   FV 全幅ブレイクアウト（Cocoon コンテナ幅制限を上書き）
   .koto-fullwide-fv クラスが付いたブロックのみ対象
====================================================== */
.koto-fullwide-fv {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  position: relative;
  left: 0;
}

/* FV内テキスト・ボタンを最大幅 1180px に収める */
.koto-fullwide-fv .wp-block-cover__inner-container {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}

/* 横スクロール防止（全幅ブレイクアウトの副作用対策）
   .main に overflow を付けると 100vw はみ出しが clip されるため、
   ページ最上位の html/body で抑制する */
html,
body {
  overflow-x: hidden;
}

/* ======================================================
   TOPページ（ID=122）白帯除去
   article-header（タイトル・日付・アイキャッチ）を非表示
====================================================== */
.page-id-122 .article-header,
.home .article-header {
  display: none !important;
}

/* .main の padding-top: 36px が白帯の正体（Cocoon デフォルト） */
.page-id-122 .main,
.home .main {
  padding-top: 0 !important;
}

/* entry-content の上マージンをリセット（念のため） */
.page-id-122 .entry-content,
.home .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ======================================================
   TOPページ H1 デザイン変更
   Cocoon 標準のタイトルバー感を排除し、ネイビー＋下線アクセント
====================================================== */
.page-id-122 .entry-content h1,
.home .entry-content h1 {
  font-size: 1.9rem !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  background: none !important;
  border: none !important;
  border-bottom: 3px solid var(--accent) !important;
  padding: 0 0 12px !important;
  margin: 48px 0 24px !important;
  line-height: 1.4 !important;
}

/* ======================================================
   H2 デザイン変更（全固定ページ共通）
   H2 > H3 の階層が明確に見えるよう H2 を強く
   ※ このテーマ（cocoon-child-master）を使うサイト全体に適用
====================================================== */
.entry-content h2 {
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  color: #1C3557 !important;
  background: transparent !important;
  border-top: none !important;
  border-right: none !important;
  border-left: 6px solid #E8620A !important;
  border-bottom: 2px solid #d8dee8 !important;
  border-radius: 0 !important;
  padding: 0.35em 0 0.35em 0.8em !important;
  margin-top: 2.4em !important;
  margin-bottom: 1.2em !important;
  line-height: 1.4 !important;
}

/* ======================================================
   H3 デザイン変更（全固定ページ共通）
   Cocoon の太枠ボックスをやめてシンプルな左線に
   H2（オレンジ左線・強）の下位として視覚的に抑制
====================================================== */
.entry-content h3 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #2C2C2C !important;
  background: #F8FAFC !important;
  border: none !important;
  border-left: 4px solid #1C3557 !important;
  border-radius: 0 !important;
  padding: 0.55em 0.8em !important;
  margin-top: 1.6em !important;
  margin-bottom: 1em !important;
  line-height: 1.4 !important;
}

/* H2/H3 の Cocoon 疑似要素（装飾）を全ページで無効化 */
.entry-content h2::before,
.entry-content h2::after,
.entry-content h3::before,
.entry-content h3::after {
  display: none !important;
}

/* ======================================================
   ビフォーアフターセクション
====================================================== */
.before-after-section {
  padding: 64px 0;
  background: #fff;
}
.before-after-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.before-after-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}
.before-after-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.before-after-lead {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 12px;
  margin-bottom: 0;
}

/* 2カラムグリッド（PC: 2ペア横並び） */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

/* 1ペア = Before + After 縦積み */
.ba-pair {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* 各画像ブロック */
.ba-item {
  position: relative;
}
.ba-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Before / After ラベル */
.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 3px;
  z-index: 1;
}
.ba-label--before {
  background: #666;
  color: #fff;
}
.ba-label--after {
  background: var(--accent);
  color: #fff;
}

/* Before / After 区切り矢印 */
.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  background: var(--primary);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  user-select: none;
}

/* キャプション */
.ba-caption {
  font-size: 0.8rem;
  color: #555;
  text-align: center;
  margin: 0;
  padding: 8px 12px 10px;
  background: #fafbfc;
}

/* スマホ: 1カラム */
@media (max-width: 768px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .before-after-section {
    padding: 40px 0;
  }
  .ba-item img {
    height: 220px;
  }
}

/* ======================================================
   お客様の声 カードグリッド
====================================================== */
.voice-section {
  padding: 64px 0;
  background: #F5F7FA;
}
.voice-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.voice-section__title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}
.voice-section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.voice-section__lead {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 12px;
  margin-bottom: 0;
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.voice-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px 22px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid #e4eaf2;
  border-top: 4px solid var(--accent);
}
.voice-stars {
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.voice-meta {
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4eaf2;
}
.voice-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #444;
  margin: 0;
}
@media (max-width: 768px) {
  .voice-grid { grid-template-columns: 1fr; gap: 16px; }
  .voice-section { padding: 40px 0; }
}

/* ======================================================
   お問い合わせフォーム導線 CTAボタン
====================================================== */
.contact-form-cta-wrap {
  text-align: left;
  margin: 24px 0 8px;
}
.contact-form-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 16px 40px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 18px rgba(232, 98, 10, 0.45);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.contact-form-cta-btn:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 98, 10, 0.6);
}
@media (max-width: 480px) {
  .contact-form-cta-btn {
    padding: 15px 24px;
  }
}

/* ======================================================
   お問い合わせ CTA帯（H3直下の無料診断・見積り受付告知）
====================================================== */
.koto-contact-cta-band {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 20px 28px;
  margin: 20px 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.koto-contact-cta-band__icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.koto-contact-cta-band__main {
  flex: 1;
}
.koto-contact-cta-band__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.koto-contact-cta-band__sub {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.88;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .koto-contact-cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
  }
  .koto-contact-cta-band__title { font-size: 1rem; }
}

/* ======================================================
   施工事例 情報ボックス
====================================================== */
.koto-works-info {
  background: #F8FAFC;
  border: 1px solid #d8dee8;
  border-left: 5px solid var(--primary);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 20px 0 8px;
}
.koto-works-info dl {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 8px 12px;
  margin: 0;
}
.koto-works-info dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: #e8eef6;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  align-self: start;
}
.koto-works-info dd {
  font-size: 0.88rem;
  color: #333;
  margin: 0;
  padding: 4px 0;
  line-height: 1.6;
  align-self: start;
}
@media (max-width: 600px) {
  .koto-works-info dl {
    grid-template-columns: 5.5em 1fr;
    gap: 6px 8px;
  }
}

/* ======================================================
   フッター ロゴ非表示 / KOTO外装テキスト表示
====================================================== */
.footer-bottom-logo {
  display: none !important;
}
