/*
Theme Name: Boulangerie Atsushi Child
Theme URI: https://boulangerie-atsushi.net
Description: ブーランジェリーアツシ専用テーマ（子テーマ）
Author: Boulangerie Atsushi
Author URI: https://boulangerie-atsushi.net
Template: boulangerie-atsushi
Version: 2.0.4
Text Domain: boulangerie-atsushi-child
*/

/* Google Fonts 読み込み */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500&display=swap');

/* =============================================
   リセットCSS（全ページ共通）
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =============================================
   CSS変数
   ============================================= */
:root {
  /* Colors - Base */
  --color-cream: #fef2e0;
  --color-brown: #7f3f20;
  --color-brown-dark: #5e2d15;
  --color-beige: #fbdeaf;
  --color-white: #fff;

  /* Colors - Text */
  --color-text: #333;
  --color-gray: #666;
  --color-gray-dark: #555;
  --color-gray-medium: #888;
  --color-gray-soft: #999;
  --color-gray-light: #ccc;

  /* Colors - Accent */
  --color-gold: #d4af37;
  --color-gold-dark: #b8860b;

  /* Typography */
  --font-base: 'Zen Maru Gothic', sans-serif;
  --font-mincho: 'Shippori Mincho', serif;
  --font-heading: 'Zen Kurenaido', sans-serif;

  /* Spacing */
  --sidebar-width: 224px;

  /* Shadows - Levels */
  --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(127, 63, 32, 0.08);

  /* Shadows - Specific */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-button-hover: 0 4px 15px rgba(127, 63, 32, 0.3);
  --shadow-image: 10px 10px 0 var(--color-beige);

  /* Border Radius - Scale */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;

  /* Border Radius - Aliases */
  --radius-card: var(--radius-md);

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-normal: 0.5s ease;

  /* Borders */
  --border-light: 1px solid rgba(127, 63, 32, 0.2);
  --border-accent: 2px solid var(--color-beige);
}

/* =============================================
   基本設定
   ============================================= */
body {
  background-color: var(--color-cream) !important;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
}

/* ページタイトルを非表示（投稿タイトルは除く） */
.entry-title,
.site-title,
h1.entry-title,
header:not(.page-header) h1:not(.article-title) {
  display: none !important;
}

/* =============================================
   共通ユーティリティ
   ============================================= */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* =============================================
   メインコンテンツ
   ============================================= */
#main-content {
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.site-main {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
}

/* トップページ以外のフェードイン */
body:not(.page-template-page-home-preview) .site-main {
  opacity: 0 !important;
  transition: opacity 0.5s ease;
}

body:not(.page-template-page-home-preview) .site-main.show {
  opacity: 1 !important;
  transition: opacity 1s ease;
}

/* =============================================
   セクション共通
   ============================================= */
.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  color: var(--color-brown);
  letter-spacing: 0.1em;
  margin: 0;
  font-weight: 500;
}

.section-subtitle {
  font-size: 14px;
  color: #888;
  letter-spacing: 0.05em;
  margin-top: 5px;
}

/* =============================================
   ボタン共通
   ============================================= */
.btn-text {
  display: inline-block;
  color: var(--color-brown);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
  border-bottom: 1px solid transparent;
}

.btn-text:hover {
  opacity: 0.7;
  border-bottom-color: var(--color-brown);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-brown);
  color: #fff;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #5e2d15;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(127, 63, 32, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-brown);
  color: var(--color-brown);
}

.btn-outline:hover {
  background-color: var(--color-brown);
  color: #fff;
}

/* =============================================
   ページヘッダー共通
   ============================================= */
.page-header {
  text-align: center;
  padding: 80px 20px 60px;
}

.page-title {
  font-size: 32px;
  color: var(--color-brown);
  letter-spacing: 0.15em;
  margin: 0;
  font-weight: 500;
  display: inline-block;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(127, 63, 32, 0.3);
}

.page-subtitle {
  font-size: 14px;
  color: #888;
  letter-spacing: 0.05em;
  margin-top: 10px;
}

/* =============================================
   店舗情報共通（定義リスト）
   ============================================= */
.shop-dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px 0;
  margin-bottom: 30px;
}

.shop-dl dt {
  color: var(--color-brown);
  font-weight: 500;
  border-left: 3px solid var(--color-beige);
  padding-left: 10px;
}

.shop-dl dd {
  margin: 0;
  font-size: 15px;
}

.tel-link {
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.tel-link:hover {
  opacity: 0.7;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 1024px) {
  .page-header {
    padding: 60px 20px 40px;
  }

  .page-title {
    font-size: 26px;
  }

  .shop-dl {
    display: block;
  }

  .shop-dl dt {
    margin-top: 15px;
    margin-bottom: 5px;
  }
}

/* =============================================
   サイドバー画像点滅防止
   ============================================= */
.sidebar-illust img {
  transition: none !important;
  opacity: 1 !important;
  will-change: opacity;
}
