/*
Theme Name: BP Theme
Theme URI: https://bbqburgerbp.com/
Author: Satory AI Labo
Author URI: https://satory-ai-labo.com/
Description: BBQ & BURGER BRICK PIT 公式サイト専用テーマ。丹波の森の中で過ごす時間をイメージしたデザイン。メニューページは「メニュー詳細」テンプレートで後からPARTY/BAKEを追加できます。
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bp-theme
*/

/* =========================================
   TOKENS
========================================= */
:root {
  --base:         #FFFFFF;
  --base-soft:    #F7F5F1;
  --base-soft-2:  #ECE8DF;
  --cream:        #FBF6E9;
  --red:          #C4362A;
  --red-deep:     #A82E22;
  --red-light:    #D64B3D;
  --ink:          #2A2018;
  --ink-soft:     #4B3E30;
  --ink-mute:     #7A6D5C;
  --brown-dark:   #3B2A1D;
  --brown:        #6B4A2E;
  --green-forest: #4A5E3C;
  --white:        #FFFFFF;
  --line:         #E4DDCF;

  --font-jp:      'Noto Sans JP', sans-serif;
  --font-display: 'Anton', 'Passion One', 'Alfa Slab One', 'Impact', 'Oswald', sans-serif;
  --font-serif:   'Playfair Display', serif;

  --max-w:        100%;
  --content-w:    720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--base);
  line-height: 1.75;
  letter-spacing: 0.02em;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* div 限定：WordPress は固定ページの body にも class="page" を付けるため、
   ".page" のままだと body に overflow:hidden が当たりページがスクロールできなくなる（2026-09-27 修正） */
div.page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: var(--base);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.screen-reader-text {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
}

/* =========================================
   HEADER
========================================= */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: none;
}
.site-header--static {
  position: relative;
  background: var(--base);
  border-bottom: 1px solid var(--line);
}
.site-header--static .menu-btn { background: var(--red); }

.brand-mark { display: flex; align-items: center; }
.brand-mark__logo {
  display: block;
  height: 62px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
@media (min-width: 720px) {
  .brand-mark__logo { height: 72px; }
}

.menu-btn {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: none;
}
.menu-btn span {
  width: 22px; height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile full-screen nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(42, 32, 24, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__list { list-style: none; text-align: center; }
.mobile-nav__list li { margin: 16px 0; }
.mobile-nav__list a {
  display: inline-block;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.15em;
  text-decoration: none;
}
.mobile-nav__list a:hover { color: var(--red-light); }

/* =========================================
   HERO
========================================= */
.hero {
  position: relative;
  aspect-ratio: 4/3;
  background-image: url('assets/images/hero.jpg');
  background-size: 125%;
  background-position: 80% 55%;
  background-repeat: no-repeat;
  overflow: hidden;
}
@media (min-width: 720px) {
  .hero {
    aspect-ratio: 3/2;
    width: 100%;          /* 幅を明示しないと max-height に合わせて横幅が縮み、右側が空く */
    max-height: 720px;
    background-size: cover;
    background-position: center 55%;
  }
}

.hero__ig {
  position: absolute; bottom: 14px; right: 18px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  z-index: 2;
}
.hero__ig svg { width: 22px; height: 22px; fill: currentColor; }

.hero__badge {
  position: absolute; bottom: 14px; left: 18px;
  z-index: 2;
  max-width: 66%;
  background: rgba(42, 32, 24, 0.55);
  color: var(--cream);
  border-radius: 6px;
  padding: 8px 12px;
  line-height: 1.5;
}
.hero__badge-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.hero__badge-award {
  display: block;
  font-size: 9px;
  letter-spacing: 0.03em;
  opacity: 0.9;
}
@media (min-width: 720px) {
  .hero__badge { max-width: 40%; padding: 10px 16px; }
  .hero__badge-label { font-size: 13px; }
  .hero__badge-award { font-size: 11px; }
}

/* =========================================
   NEWS
========================================= */
.news {
  padding: 40px 20px 36px;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.32em;
  color: var(--red);
  margin-bottom: 22px;
  font-weight: 400;
}
.news__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.news-card { text-align: left; background: var(--base); min-width: 0; overflow-wrap: anywhere; }
.news-card__link { display: block; text-decoration: none; color: inherit; }
.news-card__thumb {
  aspect-ratio: 4/3;
  background: var(--base-soft);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.15em;
}
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card__date {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  margin-bottom: 3px;
}
.news-card__title {
  font-size: 11px;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
}

.btn-more {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 32px;
  background: transparent;
  border: 1.5px solid var(--red);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--red);
  text-decoration: none;
  transition: all 0.2s;
  min-width: 140px;
}
.btn-more::after { content: '›'; font-size: 16px; line-height: 0; }
.btn-more:hover { background: var(--red); color: var(--cream); }
.btn-more--white { border-color: var(--cream); color: var(--cream); }
.btn-more--white:hover { background: var(--cream); color: var(--red); }

/* =========================================
   TAGLINE
========================================= */
.tagline { padding: 20px 20px 20px; text-align: center; }
.tagline__text {
  font-family: 'Noto Sans JP', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.8;
  color: var(--red);
  letter-spacing: 0.06em;
}

/* =========================================
   FOREST IMAGE
========================================= */
.forest-img {
  aspect-ratio: 4/3;
  background-image: url('assets/images/storefront.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-bottom: 22px;
  overflow: hidden;
}
@media (min-width: 720px) {
  .forest-img { width: 100%; max-height: 640px; }
}

/* =========================================
   ABOUT TEXT
========================================= */
.about-text {
  padding: 0 20px 40px;
  font-size: 13px;
  line-height: 2.1;
  color: var(--ink);
  letter-spacing: 0.05em;
  text-align: left;
}
.about-text__lead { font-weight: 500; }
.about-text__history {
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-mute);
}

/* =========================================
   MENU (Red Block)
========================================= */
.menu {
  background: var(--red);
  padding: 44px 22px 48px;
  color: var(--cream);
  text-align: center;
}
.menu .section-title { color: var(--cream); margin-bottom: 34px; font-size: 20px; letter-spacing: 0.32em; }

.menu-item { margin-bottom: 40px; }
.menu-item:last-child { margin-bottom: 8px; }
.menu-item__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  line-height: 1;
  text-transform: uppercase;
}
.menu-item__img {
  aspect-ratio: 16/10;
  border-radius: 4px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.menu-item__img--empty {
  background-color: rgba(255,255,255,0.08);
}
.menu-item__img--empty::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px; letter-spacing: 0.3em;
}

.menu-item__desc {
  font-size: 11px;
  line-height: 1.9;
  color: rgba(245, 237, 218, 0.95);
  letter-spacing: 0.05em;
  text-align: left;
  margin-bottom: 18px;
  padding: 0 4px;
}

/* =========================================
   CATERING NOTE
========================================= */
.catering-note {
  padding: 38px 24px 10px;
  text-align: center;
  font-size: 12px;
  line-height: 2.1;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.catering-note__actions { margin-top: 18px; }

/* =========================================
   ABOUT (Business info)
========================================= */
.about { padding: 10px 24px 40px; }
.about .section-title { text-align: center; margin-bottom: 26px; font-size: 22px; letter-spacing: 0.32em; }
.about-list { font-size: 12px; line-height: 1.9; border-collapse: collapse; width: 100%; }
.about-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 5px 0;
  align-items: baseline;
}
.about-row dt {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 400;
}
.about-row dd { font-size: 12px; color: var(--ink); line-height: 1.75; }
.about-row dd a { text-decoration: none; border-bottom: 1px solid var(--red); }

/* =========================================
   ACCESS
========================================= */
.access { padding: 20px 24px 28px; }
.access .section-title { text-align: center; margin-bottom: 22px; font-size: 22px; letter-spacing: 0.32em; }
.access__map {
  aspect-ratio: 4/3;
  background: var(--base-soft-2);
  border-radius: 4px;
  overflow: hidden;
}
.access__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.access__link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.access__link:hover { border-bottom-color: var(--red); }

/* =========================================
   FOOTER
========================================= */
.site-footer { padding: 30px 20px 34px; text-align: center; background: var(--base); }
.footer-ig {
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-ig svg { width: 22px; height: 22px; fill: currentColor; }

.footer-tel {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-tel a { color: inherit; text-decoration: none; }

.footer-logo { display: inline-block; }
.footer-logo__img { display: block; height: 80px; width: auto; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
@media (min-width: 720px) { .footer-logo__img { height: 96px; } }

.footer-copy {
  margin-top: 18px;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

/* =========================================
   PAGE HEAD（写真ヒーロー：メニュー詳細ページ用）
========================================= */
.page-head {
  position: relative;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  background-color: var(--base-soft-2);
}
.page-head::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,32,24,0.15) 0%, rgba(42,32,24,0.55) 100%);
}
.page-head__inner {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 30px 20px 40px;
  text-align: center;
}
.page-head__title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 60px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  text-transform: uppercase;
}
@media (min-width: 720px) {
  .page-head { aspect-ratio: 21/9; width: 100%; max-height: 480px; }
  .page-head__title { font-size: 96px; }
}

/* Page head band（写真ヒーローが無いページ：NEWS一覧・投稿詳細） */
.page-title-band {
  padding: 90px 20px 34px;
  text-align: center;
  background: var(--base-soft);
}
.page-title-band .section-title { margin-bottom: 8px; }
.page-title-band__date {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
}

/* =========================================
   BREADCRUMB
========================================= */
.breadcrumb {
  padding: 24px 20px 6px;
  text-align: center;
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}
.breadcrumb a { color: var(--red); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid var(--red); }
.breadcrumb .sep { margin: 0 10px; color: var(--ink-mute); }

/* =========================================
   LEAD（メニュー詳細ページ本文）
========================================= */
.entry-lead {
  padding: 32px 24px 8px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.entry-lead h2 {
  font-family: 'Noto Sans JP', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.8;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.entry-lead p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 1em;
  text-align: left;
}
@media (min-width: 720px) {
  .entry-lead h2 { font-size: 26px; }
  .entry-lead p { font-size: 15px; }
}

/* 通常ページ本文（page.php） */
.entry-content {
  padding: 8px 24px 40px;
  max-width: 720px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 2;
  color: var(--ink);
}
.entry-content p { margin-bottom: 1em; }

/* =========================================
   MENU PDF SECTION（[bp_menu_tabs] ショートコード）
========================================= */
.menu-pdf { padding: 60px 20px 40px; background: var(--base); max-width: 1100px; margin: 0 auto; }
.menu-pdf__head { text-align: center; margin-bottom: 30px; }
.menu-pdf__eyebrow { font-family: var(--font-display); color: var(--red); letter-spacing: 0.32em; font-size: 13px; margin-bottom: 10px; }
.menu-pdf__title { font-family: var(--font-display); color: var(--red); font-size: 42px; letter-spacing: 0.12em; line-height: 1; margin-bottom: 14px; }
.menu-pdf__lead { font-size: 13px; color: var(--ink); letter-spacing: 0.05em; line-height: 1.9; }
@media (min-width: 720px) {
  .menu-pdf__title { font-size: 56px; }
  .menu-pdf__lead { font-size: 14px; }
}

.menu-pdf__tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.menu-pdf__tab {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.28em;
  padding: 12px 22px;
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}
.menu-pdf__tab.is-active, .menu-pdf__tab:hover { background: var(--red); color: var(--white); }
@media (min-width: 720px) {
  .menu-pdf__tab { font-size: 15px; padding: 13px 32px; min-width: 140px; }
}

.menu-pdf__panel { display: none; }
.menu-pdf__panel.is-active { display: block; }

.menu-pdf__frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--base-soft);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(42,32,24,0.08);
}
.menu-pdf__frame embed, .menu-pdf__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 720px) {
  .menu-pdf__frame { aspect-ratio: 4/3; width: 100%; max-height: 780px; }
}

.menu-pdf__actions { text-align: center; margin-top: 16px; }
.menu-pdf__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--red);
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.menu-pdf__link:hover { border-bottom-color: var(--red); }

/* =========================================
   BACK BUTTON
========================================= */
.back-cta { padding: 50px 20px; text-align: center; }
.btn-back {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 40px;
  background: transparent;
  border: 1.5px solid var(--red);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--red);
  text-decoration: none;
  transition: all 0.2s;
  min-width: 220px;
}
.btn-back::before { content: '‹'; font-size: 18px; line-height: 0; }
.btn-back:hover { background: var(--red); color: var(--cream); }

/* =========================================
   NEWS一覧（index.php）
========================================= */
.news-list { padding: 30px 20px 20px; max-width: 720px; margin: 0 auto; }
.news-list__item { padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; display: block; color: inherit; }
.news-list__date { font-family: var(--font-display); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.15em; margin-bottom: 6px; }
.news-list__title { font-size: 15px; color: var(--ink); margin-bottom: 6px; font-weight: 500; }
.news-list__excerpt { font-size: 12px; color: var(--ink-soft); line-height: 1.8; }
.news-list__empty { padding: 60px 20px; text-align: center; color: var(--ink-mute); font-size: 13px; }

.pagination-wrap { padding: 10px 20px 50px; text-align: center; }
.pagination-wrap .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0 4px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
}
.pagination-wrap .page-numbers.current { background: var(--red); border-color: var(--red); color: var(--white); }

/* 投稿詳細（single.php） */
.entry-thumb { max-width: 720px; margin: 0 auto 20px; padding: 0 24px; }
.entry-thumb img { border-radius: 4px; width: 100%; }

/* =========================================
   Desktop（フル画面表示）
========================================= */
@media (min-width: 720px) {
  .news, .tagline, .about-text, .catering-note, .about, .access, .site-footer, .entry-content, .news-list {
    padding-left: 40px;
    padding-right: 40px;
  }
  .menu { padding-left: 40px; padding-right: 40px; }
  .news__grid, .about-text, .about-list, .access__map, .tagline__text, .catering-note {
    max-width: var(--content-w);
    margin-left: auto;
    margin-right: auto;
  }
  .menu-item { max-width: var(--content-w); margin-left: auto; margin-right: auto; }
  .menu-item__title { font-size: 72px; }
  .tagline__text { font-size: 26px; }
  .about-text { font-size: 15px; }
  .site-header { padding-left: 40px; padding-right: 40px; }
}
