/*
Theme Name: Bakes And Cakes Child
Theme URI: https://pet-ram.jp/
Description: Child theme for Bakes And Cakes.
Author: pet-ram
Template: bakes-and-cakes
Version: 1.0.0
Text Domain: bakes-and-cakes-child
*/

/* ==================================================
   ペットシッターらむ 共通デザイン管理
   Top / Page / CTA / Mobile
================================================== */

:root {
  --ram-bg: #fbf8f3;
  --ram-card: #ffffff;
  --ram-text: #3b332c;
  --ram-sub: #6d6259;
  --ram-accent: #8d6e63;
  --ram-accent-dark: #6f5147;
  --ram-border: #e8ded6;
}

body {
  color: var(--ram-text);
  line-height: 1.8;
  padding-bottom: 76px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.ram-home h1,
.ram-home h2,
.ram-home h3 {
  color: var(--ram-text);
  font-weight: 700;
  line-height: 1.45;
}

.entry-content h2,
.ram-section h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  margin: 36px 0 18px;
}

.entry-content h3,
.ram-section h3 {
  font-size: 19px;
  color: var(--ram-accent-dark);
  margin: 24px 0 10px;
}

.entry-content p,
.ram-section p {
  font-size: 16px;
  line-height: 1.85;
}

/* テーマ側「上」ボタンは無効化。WPFrontの灰色⇧のみ残す */
a.btn-top {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* トップページ：テーマ標準タイトル・説明文を非表示 */
body.home .site-title,
body.home .site-description {
  display: none !important;
}

body.home .site-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* トップページ全体 */
.ram-home {
  background: var(--ram-bg);
}

/* トップ：ヒーロー */
.ram-hero2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 18px 44px;
  background: var(--ram-bg);
}

.ram-hero2__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 24px;
  background: #f4ede7;
  box-shadow: 0 10px 28px rgba(80, 60, 45, .10);
}

.ram-hero2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.ram-hero2-slide.is-active {
  opacity: 1;
}

/* PCでは写真の見え方を優先 */
.ram-hero2-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  background: #f4ede7;
}

.ram-hero2__text {
  background: #ffffff;
  border: 1px solid var(--ram-border);
  border-radius: 24px;
  padding: 34px 30px;
  box-shadow: 0 8px 24px rgba(80, 60, 45, .06);
}

.ram-eyebrow {
  margin: 0 0 10px;
  color: var(--ram-accent-dark);
  font-size: 14px;
  letter-spacing: .08em;
  font-weight: 700;
}

.ram-hero2 h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.3vw, 44px);
  line-height: 1.35;
}

.ram-hero2__sub {
  margin: 0 0 18px;
  color: var(--ram-accent-dark);
  font-size: 18px;
  font-weight: 700;
}

.ram-hero2__lead {
  margin: 0 0 26px;
  color: var(--ram-sub);
  font-size: 17px;
  line-height: 1.9;
}

.ram-hero2__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 共通ボタン */
.ram-btn,
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1.4;
}

.ram-btn {
  min-width: 180px;
  padding: 13px 22px;
}

.ram-btn:hover,
.cta-primary:hover,
.cta-secondary:hover {
  opacity: .86;
  text-decoration: none !important;
}

.ram-btn--primary,
.cta-primary {
  background: var(--ram-accent);
  color: #fff !important;
}

.ram-btn--secondary,
.cta-secondary {
  background: #fff;
  color: var(--ram-accent-dark) !important;
  border: 1px solid var(--ram-border);
}

/* トップ共通セクション */
.ram-section {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px 18px;
  border-bottom: 1px solid var(--ram-border);
}

.ram-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.ram-card {
  background: var(--ram-card);
  border: 1px solid var(--ram-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(80, 60, 45, .06);
}

.ram-note {
  background: #f1ebe6;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ram-sub);
  font-size: 14px !important;
}

.ram-text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--ram-accent-dark) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ram-list {
  max-width: 680px;
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
}

.ram-list li {
  background: #fff;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 10px;
}

.ram-final-cta {
  text-align: center;
  background: #f4ede7;
  border-bottom: none;
  padding-bottom: 60px;
}

/* 本文CTA */
.cta-box {
  margin-top: 40px;
  padding: 24px;
  background: #f4ede7;
  border: 1px solid var(--ram-border);
  border-radius: 16px;
}

.cta-primary,
.cta-secondary {
  padding: 12px 20px;
}

.cta-buttons {
  margin-top: 16px;
}

.cta-note {
  font-size: 13px;
  color: var(--ram-sub);
  margin-top: 12px;
}

.cta-box a {
  text-decoration: none !important;
}

/* 予約ページ */
.ram-reservation-guide {
  margin: 32px 0 28px;
  padding: 24px;
  background: var(--ram-bg);
  border: 1px solid var(--ram-border);
  border-radius: 18px;
}

.ram-reservation-guide h2 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 24px;
}

.ram-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ram-guide-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
}

.ram-guide-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ram-accent-dark);
}

.ram-guide-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.ram-guide-card--notice {
  background: #f4ede7;
}

/* 追従CTA */
.ram-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--ram-border);
  box-shadow: 0 -4px 18px rgba(0,0,0,.08);
}

.ram-sticky-cta__btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
}

.ram-sticky-cta__btn--form {
  background: var(--ram-accent);
  color: #fff !important;
}

.ram-sticky-cta__btn--tel {
  background: #f1ebe6;
  color: var(--ram-accent-dark) !important;
}

/* WPFront Scroll Top：追従CTAと重ならない位置 */
#wpfront-scroll-top-container {
  bottom: 80px !important;
  z-index: 9997 !important;
}

/* AddToAny スマホ非表示 */
@media (max-width: 768px) {
  .a2a_floating_style,
  .a2a_vertical_style,
  .a2a_floating_style.a2a_default_style,
  .addtoany_share_save_container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* PC */
@media (min-width: 769px) {
  .ram-sticky-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* スマホ */
@media (max-width: 760px) {
  .ram-hero2 {
    display: block;
    padding: 16px 14px 32px;
  }

  .ram-hero2__image {
    aspect-ratio: 16 / 9;
    border-radius: 18px 18px 0 0;
    box-shadow: none;
  }

  /* スマホでは写真全体が見える設定 */
  .ram-hero2-slide img {
    object-fit: contain !important;
    object-position: center center !important;
  }

  .ram-hero2__text {
    border-radius: 0 0 18px 18px;
    padding: 24px 18px 26px;
    box-shadow: none;
  }

  .ram-hero2 h1 {
    font-size: 30px;
    text-align: center;
  }

  .ram-hero2__sub,
  .ram-hero2__lead,
  .ram-eyebrow {
    text-align: center;
  }

  .ram-hero2__actions {
    justify-content: center;
  }

  .ram-hero2__actions .ram-btn {
    width: 100%;
    max-width: none;
  }

  .ram-section {
    padding: 34px 16px;
  }

  .ram-cards,
  .ram-guide-grid {
    grid-template-columns: 1fr;
  }

  .ram-reservation-guide {
    padding: 18px;
  }
}
/* ==================================================
   内部ページ：テーマ標準ヘッダー調整
   TOPは front-page.php 側で制御済みのため除外
================================================== */

body:not(.home) .site-header {
  padding: 18px 12px 12px !important;
  background: #fffaf6;
}

body:not(.home) .site-branding {
  text-align: center;
}

body:not(.home) .site-title {
  display: block !important;
  margin: 0 auto 6px !important;
  font-size: clamp(24px, 4.2vw, 42px) !important;
  line-height: 1.25 !important;
  letter-spacing: .02em;
  color: #d99ab0 !important;
  opacity: 1 !important;
}

body:not(.home) .site-title a {
  color: #d99ab0 !important;
  text-decoration: none !important;
}

body:not(.home) .site-description {
  display: block !important;
  margin: 0 auto !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #7a6b63 !important;
  text-align: center;
}

/* 内部ページ：本文幅と余白 */
body:not(.home) .site-content {
  background: #fbf8f3;
}

body:not(.home) .content-area,
body:not(.home) .site-main {
  max-width: 980px;
  margin: 0 auto;
}

body:not(.home) .entry-content {
  background: #fff;
  padding: 36px 34px;
}

/* 内部ページ：見出し暴走防止 */
body:not(.home) .entry-title {
  font-size: clamp(24px, 4vw, 38px) !important;
  line-height: 1.35 !important;
  color: var(--ram-text) !important;
}

body:not(.home) .entry-content h1 {
  font-size: clamp(24px, 4vw, 38px) !important;
}

body:not(.home) .entry-content h2 {
  font-size: clamp(22px, 3.2vw, 30px) !important;
}

body:not(.home) .entry-content h3 {
  font-size: clamp(18px, 2.6vw, 22px) !important;
}

/* スマホ内部ページ */
@media (max-width: 760px) {
  body:not(.home) .site-header {
    padding: 16px 10px 10px !important;
  }

  body:not(.home) .site-title {
    font-size: 36px !important;
    line-height: 1.18 !important;
    word-break: keep-all;
  }

  body:not(.home) .site-description {
    font-size: 12px !important;
    padding: 0 10px;
  }

  body:not(.home) .entry-content {
    padding: 28px 20px;
  }

  body:not(.home) .entry-title {
    font-size: 30px !important;
  }
}

/* =========================================
   内部ページ：ヘッダータイトル調整
========================================= */

/* TOPは除外 */
body:not(.home) .site-branding {
  text-align: center;
  padding: 10px 10px 6px;
}

/* タイトル（巨大ピンクのやつ） */
body:not(.home) .site-title {
  font-size: clamp(18px, 2.4vw, 26px) !important;
  line-height: 1.3 !important;
  color: #8d6e63 !important;
  margin: 0 !important;
}

/* リンク色も強制 */
body:not(.home) .site-title a {
  color: #8d6e63 !important;
}

/* サブコピー */
body:not(.home) .site-description {
  font-size: 12px !important;
  color: #7a6b63 !important;
  margin: 4px 0 0 !important;
  line-height: 1.5 !important;
}

/* スマホ最適化 */
@media (max-width: 760px) {
  body:not(.home) .site-title {
    font-size: 18px !important;
  }

  body:not(.home) .site-description {
    font-size: 11px !important;
  }
}
/* ==================================================
   内部ページ：親テーマヘッダー2行だけを強制調整
   対象：
   1. 東大阪・奈良エリアのペットシッター らむ
   2. 東大阪・奈良エリアの猫ちゃんを中心に...
================================================== */

body:not(.home) .site-header .site-branding,
body:not(.home) #masthead .site-branding {
  padding: 12px 10px 8px !important;
  text-align: center !important;
}

/* サイトタイトル本体 */
body:not(.home) .site-header .site-title,
body:not(.home) #masthead .site-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

/* 親テーマは a 側に巨大フォントを当てている可能性が高いため、aを直接指定 */
body:not(.home) .site-header .site-title a,
body:not(.home) #masthead .site-title a,
body:not(.home) .site-branding .site-title a {
  font-size: clamp(22px, 4vw, 38px) !important;
  line-height: 1.25 !important;
  color: #d99ab0 !important;
  letter-spacing: .03em !important;
  text-decoration: none !important;
  word-break: keep-all !important;
}

/* サブコピー */
body:not(.home) .site-header .site-description,
body:not(.home) #masthead .site-description,
body:not(.home) .site-branding .site-description {
  margin: 6px auto 0 !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #7a6b63 !important;
  text-align: center !important;
}

/* スマホ */
@media (max-width: 760px) {
  body:not(.home) .site-header .site-title a,
  body:not(.home) #masthead .site-title a,
  body:not(.home) .site-branding .site-title a {
    font-size: 30px !important;
    line-height: 1.18 !important;
  }

  body:not(.home) .site-header .site-description,
  body:not(.home) #masthead .site-description,
  body:not(.home) .site-branding .site-description {
    font-size: 11px !important;
  }
}
/* ==================================================
   内部ページ 共通整形
   予約 / 料金 / FAQ / 対応エリア / お世話内容 / ご利用までの流れ
================================================== */

/* 内部ページ全体の背景 */
body:not(.home) .site-content {
  background: #fbf8f3 !important;
}

/* 本文コンテナ */
body:not(.home) .content-area,
body:not(.home) .site-main {
  max-width: 980px !important;
  margin: 0 auto !important;
}

/* 本文白カード化 */
body:not(.home) article,
body:not(.home) .entry-content {
  background: #ffffff !important;
  border-radius: 0 !important;
}

/* 本文余白 */
body:not(.home) .entry-content {
  padding: 34px 34px 44px !important;
}

/* ページタイトル */
body:not(.home) .entry-title {
  font-size: clamp(26px, 4vw, 38px) !important;
  line-height: 1.35 !important;
  color: var(--ram-text) !important;
  margin: 0 0 28px !important;
}

/* 見出し */
body:not(.home) .entry-content h1 {
  font-size: clamp(26px, 4vw, 38px) !important;
  line-height: 1.35 !important;
  color: var(--ram-text) !important;
}

body:not(.home) .entry-content h2 {
  font-size: clamp(22px, 3.2vw, 30px) !important;
  line-height: 1.45 !important;
  color: var(--ram-text) !important;
  margin-top: 34px !important;
}

body:not(.home) .entry-content h3 {
  font-size: clamp(18px, 2.5vw, 22px) !important;
  line-height: 1.45 !important;
  color: var(--ram-accent-dark) !important;
}

/* 本文 */
body:not(.home) .entry-content p,
body:not(.home) .entry-content li {
  font-size: 16px !important;
  line-height: 1.85 !important;
}

/* リンク */
body:not(.home) .entry-content a {
  color: var(--ram-accent-dark) !important;
  font-weight: 700;
}

/* 表 */
body:not(.home) .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
}

body:not(.home) .entry-content th,
body:not(.home) .entry-content td {
  border: 1px solid var(--ram-border);
  padding: 12px 14px;
  line-height: 1.6;
}

body:not(.home) .entry-content th {
  background: #f4ede7;
  color: var(--ram-text);
}

/* 画像 */
body:not(.home) .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 内部ページ用 共通ヘッドブロック */
.ram-page-head {
  max-width: 880px;
  margin: 0 auto 30px;
  padding: 26px 24px;
  background: #f4ede7;
  border: 1px solid var(--ram-border);
  border-radius: 18px;
  text-align: center;
}

.ram-page-head h1,
.ram-page-head h2 {
  margin: 0 0 10px !important;
  font-size: clamp(26px, 4vw, 36px) !important;
  line-height: 1.35 !important;
  color: var(--ram-text) !important;
}

.ram-page-head p {
  margin: 0 !important;
  color: var(--ram-sub);
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* スマホ */
@media (max-width: 760px) {
  body:not(.home) .entry-content {
    padding: 28px 20px 38px !important;
  }

  body:not(.home) .entry-title {
    font-size: 30px !important;
    margin-bottom: 22px !important;
  }

  body:not(.home) .entry-content h1 {
    font-size: 30px !important;
  }

  body:not(.home) .entry-content h2 {
    font-size: 24px !important;
  }

  body:not(.home) .entry-content h3 {
    font-size: 20px !important;
  }

  body:not(.home) .entry-content p,
  body:not(.home) .entry-content li {
    font-size: 15px !important;
  }

  .ram-page-head {
    padding: 22px 18px;
    margin-bottom: 24px;
  }
}
/* ==================================================
   内部ページ：本文エリア中央寄せ補正
================================================== */

body:not(.home) #content.site-content,
body:not(.home) .site-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: #fbf8f3 !important;
}

body:not(.home) #primary.content-area,
body:not(.home) .content-area {
  float: none !important;
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
}

body:not(.home) #main.site-main,
body:not(.home) .site-main {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body:not(.home) article {
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* スマホ */
@media (max-width: 760px) {
  body:not(.home) #primary.content-area,
  body:not(.home) .content-area {
    padding: 0 14px !important;
  }
}
/* ==================================================
   CTAボタン文字色強制（全ページ統一）
================================================== */

.ram-btn,
.ram-btn a,
a.ram-btn,
.ram-btn:visited,
a.ram-btn:visited {
  color: #ffffff !important;
}

/* ホバー時も白維持 */
.ram-btn:hover,
a.ram-btn:hover {
  color: #ffffff !important;
}

/* 念のため primary限定も強化 */
.ram-btn--primary {
  color: #ffffff !important;
}
/* ==================================================
   本文CTA：primaryボタン文字色を白に固定
================================================== */

a.cta-primary,
.cta-primary,
.cta-primary:link,
.cta-primary:visited,
.cta-primary:hover,
.cta-primary:active {
  color: #ffffff !important;
  background: var(--ram-accent) !important;
  opacity: 1 !important;
}

.cta-box a.cta-primary,
.entry-content a.cta-primary {
  color: #ffffff !important;
}
/* ==================================================
   CTA（本文内）文字色 強制上書き
================================================== */

/* 最も強い指定で上書き */
.entry-content a.cta-primary,
.entry-content a.cta-primary:link,
.entry-content a.cta-primary:visited,
.entry-content a.cta-primary:hover,
.entry-content a.cta-primary:active {
  color: #ffffff !important;
}

/* ボタンとしての見た目も安定させる */
.entry-content .cta-primary {
  background-color: var(--ram-accent) !important;
  border: none !important;
  display: inline-block;
}

/* secondaryの微調整（任意） */
.entry-content a.cta-secondary {
  color: var(--ram-text) !important;
}
/* ==================================================
   TOP画像 6:5 比率固定
================================================== */

.ram-hero2__image {
  aspect-ratio: 6 / 5;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 中の画像をトリミング表示 */
.ram-hero2__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スライドにも適用 */
.ram-hero2-slide {
  width: 100%;
  height: 100%;
}
/* ==================================================
   TOPヒーロー：料金を見るボタンの文字色復旧
================================================== */

.ram-hero2__actions a.ram-btn--secondary,
.ram-hero2__actions a.ram-btn--secondary:link,
.ram-hero2__actions a.ram-btn--secondary:visited,
.ram-hero2__actions a.ram-btn--secondary:hover,
.ram-hero2__actions a.ram-btn--secondary:active {
  color: var(--ram-accent-dark) !important;
  background: #ffffff !important;
  border: 1px solid var(--ram-border) !important;
}