/*
Theme Name:   Astra Child - Torr Penn
Theme URI:    http://localhost:8888/test.torrpenn-wp
Description:  Brasserie Torr Penn 用 Astra 子テーマ
Author:       Torr Penn
Template:     astra
Version:      1.3.1
Text Domain:  astra-child
*/

/* ========================================
   デザイントークン（静的サイトより移植）
   ======================================== */
:root {
  --bg:         #09090b;
  --bg-1:       #0f0f12;
  --bg-2:       #15151a;
  --gold:       #c9a84c;
  --gold-light: #e0c06a;
  --white:      #f5f4f0;
  --muted:      #7a7a85;
  --ff-head:    'Grenze', serif;
  --ff-body:    'Inter', sans-serif;
  --ff-ui:      'Outfit', sans-serif;
}

/* Astraのwp_head()インラインスタイルによる上書きを阻止 */
body { background: var(--bg) !important; color: var(--white) !important; }
h1 { color: var(--white) !important; }
h2 { color: var(--white) !important; }
h3 { color: var(--white) !important; }

/* ページ別背景色（assets/css/style.cssより後に読まれるため確実に上書き） */
body.standard-page,
body.products-page { background: #0a1a2b !important; }
body.service-page   { background: #0c1a2b !important; }
body.brewery-page   { background: #0a1a2b !important; }

/* 個別商品ページ：石畳テクスチャ背景（body.standard-page上書き後に宣言） */
body.product-detail-page {
  background-image: url('assets/images/bg-5.webp') !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center top !important;
  background-color: #0a0a0c !important;
}

/* Astra スクロールトップボタン（#IDで上書き） */
#ast-scroll-top {
  background-color: transparent !important;
  border: 1.5px solid var(--gold) !important;
  color: var(--gold) !important;
  border-radius: 50% !important;
}
#ast-scroll-top:hover {
  background-color: var(--gold) !important;
  color: var(--bg) !important;
}
#ast-scroll-top .ast-icon.icon-arrow svg { fill: currentColor !important; }
/* floating-cart（60px幅）と中心X軸を揃える */
#ast-scroll-top.ast-scroll-to-top-right { right: calc(60px - 1.05em) !important; }
@media (max-width: 600px) {
  /* floating-cart（38px幅）に合わせる */
  #ast-scroll-top.ast-scroll-to-top-right { right: calc(49px - 1.05em) !important; }
}

/* breweryページ pタグ色をAstraインラインスタイルから保護 */
.brewery-story-block .block-text p,
.brewery-story p,
.process-header p,
.block-image-caption { color: var(--muted) !important; }

/* CF7 ラジオ・チェックボックスのラベル文字色 */
.wpcf7-list-item label { color: var(--white) !important; }

/* UNUSED (verified 2026-08-04): ローカル・ステージング双方でAltchaプラグイン未導入のため参照なし。CF7フォームに[altcha]タグは残るが現状は何もレンダリングしない
.altcha-label,
.altcha .altcha-text { color: var(--white) !important; }
*/

/* AstraのCF7スタイル上書き（input背景#FFF→ダークテーマへ） */
.contact-form input.wpcf7-form-control,
.contact-form textarea.wpcf7-form-control,
.contact-form select.wpcf7-form-control {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: var(--white) !important;
}
.contact-form input.wpcf7-form-control:focus,
.contact-form textarea.wpcf7-form-control:focus,
.contact-form select.wpcf7-form-control:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: none !important;
}
