/*
Theme Name: エアコンサポート横浜
Version: 1.0.0
Description: エアコンサポート横浜 オリジナルテーマ。全ページテンプレート同梱、親テーマ不要。
Author: -
*/

/* ============================================
   デザイントークン（a-brown.html 準拠）
   ============================================ */
:root{
  --acy-brand:#5b3a1e;
  --acy-brand-d:#442506;
  --acy-accent:#d4a24c;
  --acy-accent-ink:#a5762a;
  --acy-bg:#fbf8f2;
  --acy-bg2:#f4ecdc;
  --acy-surface:#fffdf9;
  --acy-ink:#3a2c1e;
  --acy-soft:#7a6a58;
  --acy-line:#e7dcc7;
  --acy-radius:16px;
  --acy-line-green:#06c755;
}

body{
  font-family:'M PLUS Rounded 1c',sans-serif;
  background:var(--acy-bg);
  color:var(--acy-ink);
  font-feature-settings:"palt";
  letter-spacing:.01em;
}
h1,h2,h3,h4{font-weight:800;letter-spacing:.01em;}

/* ============================================
   ボタン（SWELLボタンブロックに追加クラスで適用）
   .acy-btn-primary / .acy-btn-line / .acy-btn-ghost
   ============================================ */
.acy-btn-primary a,
.acy-btn-line a,
.acy-btn-ghost a{
  display:inline-flex;align-items:center;justify-content:center;gap:.4em;
  font-weight:700;border-radius:999px!important;
  padding:15px 32px;border:2px solid transparent;
  transition:transform .12s ease,box-shadow .18s ease,background .18s ease;
  text-decoration:none;line-height:1.2;
}
.acy-btn-primary a:hover,.acy-btn-line a:hover{transform:translateY(-2px);}
.acy-btn-primary a{
  background:var(--acy-brand)!important;color:#fff!important;
  box-shadow:0 6px 18px rgba(91,58,30,.28);
}
.acy-btn-primary a:hover{background:var(--acy-brand-d)!important;}
.acy-btn-line a{
  background:var(--acy-line-green)!important;color:#fff!important;
  box-shadow:0 6px 18px rgba(6,199,85,.28);
}
.acy-btn-line a:hover{background:#05b34c!important;}
.acy-btn-ghost a{
  background:transparent!important;color:var(--acy-brand)!important;
  border-color:var(--acy-brand)!important;
}
.acy-btn-ghost a:hover{background:var(--acy-brand)!important;color:#fff!important;}

/* ============================================
   ヒーロー（メインビジュアル）
   カバーブロック + 追加CSSクラス .acy-hero
   ============================================ */
.acy-hero{position:relative;}
.acy-hero .wp-block-cover__inner-container{
  display:flex;flex-direction:column;justify-content:flex-end;min-height:480px;
}
.acy-hero h1,.acy-hero .acy-hero-title{
  color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.55);
  font-size:clamp(20px,5.6vw,34px);line-height:1.4;
}
/* 明るい写真 + 下部のみスクリム */
.acy-hero .wp-block-cover__background{
  background:linear-gradient(180deg,rgba(30,20,10,0) 0%,rgba(30,20,10,0) 45%,rgba(30,20,10,.62) 78%,rgba(30,20,10,.72) 100%)!important;
  opacity:1!important;
}
.acy-hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.acy-hero-badges span{
  background:rgba(255,255,255,.92);color:var(--acy-brand);
  font-size:13px;font-weight:700;padding:6px 16px;border-radius:999px;
}

/* ============================================
   実績3連バンド（カラムブロック + .acy-metrics）
   ============================================ */
.acy-metrics{background:var(--acy-brand);margin:0;}
.acy-metrics .wp-block-column{
  padding:20px 8px;text-align:center;
  border-right:1px solid rgba(255,255,255,.18);
}
.acy-metrics .wp-block-column:last-child{border-right:none;}
.acy-metrics .acy-num{
  display:block;font-weight:800;color:#fff;
  font-size:clamp(22px,6.4vw,30px);line-height:1.1;
}
.acy-metrics .acy-label{
  display:block;margin-top:5px;font-size:12px;font-weight:600;
  color:rgba(255,255,255,.82);letter-spacing:.04em;
}

/* ============================================
   料金表（SWELLテーブル or コアテーブル + .acy-price-table）
   ============================================ */
.acy-price-table table{
  border:1px solid var(--acy-line);border-radius:var(--acy-radius);
  overflow:hidden;border-collapse:separate;border-spacing:0;
  background:var(--acy-surface);width:100%;
}
.acy-price-table th,.acy-price-table td{
  padding:14px 20px;border:none;border-bottom:1px solid var(--acy-line);font-size:15px;
}
.acy-price-table thead th{background:var(--acy-brand);color:#fff;font-weight:700;font-size:14px;}
.acy-price-table td:last-child,.acy-price-table th:last-child{text-align:right;white-space:nowrap;}
.acy-price-table td.acy-amount,.acy-price-table td:last-child{color:var(--acy-brand);font-weight:800;}
.acy-price-note{color:var(--acy-soft);font-size:13px;line-height:1.7;}

/* ============================================
   施工事例カード（投稿リストブロック用の上書き）
   ============================================ */
.acy-works .p-postList__item .p-postList__link,
.acy-works-card{
  background:var(--acy-surface);border:1px solid var(--acy-line);
  border-radius:var(--acy-radius);overflow:hidden;
  transition:transform .15s ease,box-shadow .2s ease;
}
.acy-works .p-postList__item .p-postList__link:hover{
  transform:translateY(-4px);box-shadow:0 14px 30px rgba(58,44,30,.12);
}
.acy-works .p-postList__title{font-size:16.5px;font-weight:800;}
.acy-cat-tag{
  display:inline-block;background:var(--acy-brand);color:#fff;
  font-size:12px;font-weight:700;padding:4px 13px;border-radius:999px;
}

/* ============================================
   お客様の声
   ============================================ */
.acy-voice{
  background:var(--acy-surface);border:1px solid var(--acy-line);
  border-left:5px solid var(--acy-accent);border-radius:var(--acy-radius);
  padding:26px 28px;
}
.acy-voice .acy-stars{color:var(--acy-accent);font-size:17px;letter-spacing:2px;}
.acy-voice .acy-who{color:var(--acy-soft);font-size:13.5px;font-weight:700;}

/* ============================================
   CTA帯（closing CTA）
   ============================================ */
.acy-cta-band{
  background:var(--acy-brand);color:#fff;text-align:center;
  padding:64px 22px;
}
.acy-cta-band h2{color:#fff;}
.acy-cta-band a{color:#fff;}

/* ============================================
   モバイル固定フッターバー（PC非表示）
   functions.php の wp_footer で出力
   ============================================ */
.acy-mobile-bar{display:none;}
@media(max-width:820px){
  .acy-mobile-bar{
    display:grid;position:fixed;left:0;right:0;bottom:0;z-index:9999;
    grid-template-columns:repeat(2,1fr);
    background:var(--acy-surface);border-top:1px solid var(--acy-line);
    box-shadow:0 -4px 18px rgba(58,44,30,.16);
  }
  .acy-mobile-bar a{
    display:flex;align-items:center;justify-content:center;
    padding:14px 4px;min-height:56px;
    font-weight:800;font-size:14px;text-decoration:none;
  }
  .acy-mobile-bar a:first-child{background:var(--acy-line-green);color:#fff;}
  .acy-mobile-bar a:last-child{background:var(--acy-brand);color:#fff;}
  .acy-mobile-bar svg{width:18px;height:18px;fill:currentColor;margin-right:6px;}
  body{padding-bottom:56px;}
}

/* ============================================
   新着情報リスト
   ============================================ */
.acy-news-list .p-postList__item{border-bottom:1px solid var(--acy-line);}
.acy-news-list .p-postList__times{color:var(--acy-soft);font-weight:700;}

/* Contact Form 7 */
.wpcf7 label{display:block;font-weight:700;margin-bottom:6px;}
.wpcf7 p{margin:0 0 18px;}
.wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 input[type="tel"],.wpcf7 select,.wpcf7 textarea{
  display:block;width:100%;border:1.5px solid var(--acy-line);border-radius:10px;
  padding:12px 14px;background:var(--acy-surface);font-family:inherit;font-size:16px;
  box-sizing:border-box;margin-top:6px;
}
.wpcf7 select{
  appearance:none;-webkit-appearance:none;height:auto;min-height:50px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235b3a1e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:20px;
  padding-right:44px;
}
.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus{outline:none;border-color:var(--acy-accent);}
.wpcf7 .wpcf7-submit{
  background:var(--acy-brand);color:#fff;border:none;border-radius:999px;
  padding:15px 40px;font-weight:700;font-size:16px;cursor:pointer;font-family:inherit;
}
.wpcf7 .wpcf7-submit:hover{background:var(--acy-brand-d);}
