/* =========================================
   PhotoBlock Theme — Global Styles
   ========================================= */
:root {
  --pb-cream:       #FAF7F2;
  --pb-warm-white:  #FFFEFB;
  --pb-sand:        #EDE4D5;
  --pb-taupe:       #C9B99A;
  --pb-brown:       #8B6E52;
  --pb-deep-brown:  #3E2D20;
  --pb-blush:       #E8C5B0;
  --pb-accent:      #C07A52;
  --pb-accent-dark: #9A5E3C;
  --pb-text:        #332518;
  --pb-text-sub:    #7A6550;
  --pb-text-light:  #B0997E;
  --pb-gold:        #C4944A;
  --pb-section-bg:  #F5F0E8;

  --pb-font-serif:      'Shippori Mincho', serif;
  --pb-font-serif-body: 'Noto Serif JP', serif;
  --pb-font-sans:       'Zen Kaku Gothic New', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--pb-font-serif-body);
  background: var(--pb-cream);
  color: var(--pb-text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ── Reveal animation ── */
.pb-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.pb-reveal.in { opacity: 1; transform: none; }
.pb-reveal.d1  { transition-delay: .12s; }
.pb-reveal.d2  { transition-delay: .24s; }
.pb-reveal.d3  { transition-delay: .36s; }

/* ── Header ── */
.pb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 14px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pb-header-bg, rgba(250,247,242,0.94));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,185,154,0.25);
  transition: box-shadow .4s;
}
.admin-bar .pb-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .pb-header {
    top: 46px;
    border-bottom: 1px solid var(--pb-sand, #EDE4D5);
  }
}
.pb-header.scrolled { box-shadow: 0 4px 24px rgba(62,45,32,.08); }

/* ── Section padding utility ── */
.pb-section {
  padding: 96px 64px;
}
.pb-section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .pb-header { padding: 12px 20px; }
  .pb-section { padding: 64px 20px; }
}

/* ===========================================
   幅制御システム（一元管理）
   ルール：
   1. hero / trust / cta-banner は常に全幅（!important で固定）
   2. section-header / usp-grid / menu-grid / voice-card は
      blockWidth 属性の pb-width-* クラスで制御
   3. text-section（InnerBlocks）は pb-width-* クラスで外枠制御、
      中身は pb-ts__inner で幅制限
   4. コアブロック（段落・見出し等）は WordPress デフォルトに任せる
      → theme.json で content-size / wide-size を定義すれば自動制御
   =========================================== */

/* ── 1. 全幅固定ブロック ── */
.wp-block-lunaria-hero,
.wp-block-lunaria-trust,
.wp-block-lunaria-cta-banner {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: block;
}

/* ── 2. pb-width-* クラス（blockWidth SelectControl） ── */
.pb-width-content {
  max-width: 760px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.pb-width-wide {
  max-width: 1180px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.pb-width-full {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* pb-width-full の内側には padding を付ける */
.pb-width-full > .pb-sec-header-inner,
.pb-width-full > .pb-usp-grid-inner,
.pb-width-full > .pb-menu-grid-inner,
.pb-width-full > .pb-ts__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}

/* ── 3. text-section 内側 ── */
.pb-text-section .pb-ts__inner {
  width: 100%;
  box-sizing: border-box;
}

.pb-width-content.pb-text-section .pb-ts__inner,
.pb-width-wide.pb-text-section .pb-ts__inner {
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* ── コンテンツ・フッター間の余白リセット ── */
html, body { margin: 0; overflow-x: hidden; max-width: 100%; }
main#main { margin-bottom: 0; padding-bottom: 0; }

/* fixed ヘッダー分の高さ確保スペーサー */
.pb-header-spacer { display: block; height: 68px; }
.admin-bar .pb-header-spacer { height: calc(68px + 32px); }
@media (max-width: 782px) {
  .admin-bar .pb-header-spacer { height: calc(64px + 46px); }
}
@media (max-width: 768px) {
  .pb-header-spacer { height: 64px; }
}

/* ── パンくずリスト ── */
.pb-breadcrumb {
  width: 100%;
  background: var(--pb-section-bg, #F5F0E8);
  border-bottom: 1px solid var(--pb-sand, #EDE4D5);
  padding: 8px clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}
.pb-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.pb-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--pb-font-sans, sans-serif);
  font-size: 12px;
  color: var(--pb-text-sub, #7A6550);
  line-height: 1.5;
}
.pb-breadcrumb__link {
  color: var(--pb-text-sub, #7A6550);
  text-decoration: none;
  transition: color .2s;
}
.pb-breadcrumb__link:hover { color: var(--pb-accent, #C07A52); }
.pb-breadcrumb__sep { color: var(--pb-taupe, #C9B99A); font-size: 10px; margin: 0 2px; }
.pb-breadcrumb__item--current span { color: var(--pb-text, #332518); }

/* コンテンツ末尾余白リセット */
.entry-content > *:last-child,
.wp-block-post-content > *:last-child { margin-bottom: 0 !important; }

/* ── コンテンツ幅レイアウト（theme.json の contentSize / wideSize を反映） ── */
/* 標準ブロックはコンテンツ幅（760px）で中央揃え */
.wp-block-post-content.is-layout-flow > *,
.wp-block-post-content.is-layout-constrained > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* 幅広（alignwide）は 1180px */
.wp-block-post-content.is-layout-flow > .alignwide,
.wp-block-post-content.is-layout-constrained > .alignwide {
  max-width: 1180px;
}

/* 全幅（alignfull）は画面幅いっぱい */
.wp-block-post-content.is-layout-flow > .alignfull,
.wp-block-post-content.is-layout-constrained > .alignfull {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* カスタムブロックは自身の幅制御を優先（全幅固定ブロックのみ除外） */
.wp-block-post-content.is-layout-flow > .pb-hero,
.wp-block-post-content.is-layout-flow > .pb-trust,
.wp-block-post-content.is-layout-flow > .pb-cta,
.wp-block-post-content.is-layout-flow > .pb-section,
.wp-block-post-content.is-layout-flow > .pb-timeline,
.wp-block-post-content.is-layout-flow > .pb-voices,
.wp-block-post-content.is-layout-flow > .pb-menu-grid,
.wp-block-post-content.is-layout-flow > .pb-usp-grid,
.wp-block-post-content.is-layout-flow > .pb-sec-header,
.wp-block-post-content.is-layout-flow > .pb-before-after,
.wp-block-post-content.is-layout-flow > .pb-footer,
.wp-block-post-content.is-layout-flow > .pb-text-section {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* カスタムブロックの幅制御は blocks/*/style.css の pb-width-* クラスで行う */

/* 左右パディング（コンテンツ幅ブロックの内側余白） */
.wp-block-post-content.is-layout-flow > *:not(.alignfull):not(.alignwide):not([class*="wp-block-lunaria-"]) {
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}
.wp-block-post-content.is-layout-flow > .alignwide:not([class*="wp-block-lunaria-"]) {
  padding-left: clamp(20px, 3vw, 32px);
  padding-right: clamp(20px, 3vw, 32px);
}
.wp-site-blocks { padding-bottom: 0 !important; }


/* ── ヘッダー ナビ・ボタン（カスタマイザー対応） ── */
.pb-header__logo a { text-decoration: none; }
.pb-header__site-name {
  font-family: var(--pb-font-serif);
  font-size: 16px;
  color: var(--pb-header-text, var(--pb-deep-brown));
  letter-spacing: .06em;
}
.pb-header__logo img { height: 40px; width: auto; }

.pb-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.pb-nav__item a {
  font-family: var(--pb-font-sans);
  font-size: 13px;
  color: var(--pb-header-nav, var(--pb-deep-brown));
  text-decoration: none;
  letter-spacing: .08em;
  transition: color .25s;
}
.pb-nav__item a:hover { color: var(--pb-accent); }

.pb-header__btn {
  font-family: var(--pb-font-sans);
  font-size: 12px;
  letter-spacing: .12em;
  color: #fff;
  background: var(--pb-header-btn, var(--pb-accent));
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 1px;
  white-space: nowrap;
  transition: background .25s, transform .25s;
}
.pb-header__btn:hover { background: var(--pb-accent-dark); transform: translateY(-1px); }

/* 電話番号ボタン型 */
.pb-header__tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--pb-header-nav, var(--pb-deep-brown));
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--pb-font-sans);
  color: var(--pb-header-text, var(--pb-deep-brown));
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s, border-color .2s, opacity .2s;
  opacity: .8;
}
.pb-header__tel-btn:hover {
  opacity: 1;
}

/* ハンバーガー（スマホ用・初期非表示） */
.pb-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.pb-header__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--pb-header-text, var(--pb-deep-brown));
  transition: all .3s;
}

/* ── フッター ── */
.pb-footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--pb-footer-bg, var(--pb-deep-brown));
  padding: 0;
  box-sizing: border-box;
}
.pb-footer__copy {
  font-family: var(--pb-font-sans);
  font-size: 11px;
  color: var(--pb-footer-text, rgba(255,255,255,.4));
  letter-spacing: .14em;
}

/* フッター電話番号 */
.pb-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.pb-footer__tel a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pb-font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--pb-footer-text, rgba(255,255,255,.8));
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  padding: 10px 24px;
  transition: border-color .2s, color .2s;
}
.pb-footer__tel a:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

@media (max-width: 768px) {
  .pb-nav { display: none; }
  .pb-header__btn { display: none; }
  .pb-header__tel-btn { margin-left: auto; margin-right: 8px; }
  .pb-header__toggle {
    display: flex;
    flex-shrink: 0;
  }
  /* 電話番号をスマホでも表示（ただしコンパクトに） */
  .pb-header__tel {
    font-size: 12px;
    white-space: nowrap;
  }
  .pb-footer { padding: 20px; }

  /* スマホメニュー展開：ヘッダーの高さ分だけ下から開始 */
  .pb-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0; /* JSで上書きされる */
    background: var(--pb-section-bg, #F5F0E8);
    z-index: 250;
    padding: 32px 24px 40px;
    overflow-y: auto;
  }
  /* メニューのtopはJSで動的設定（header.getBoundingClientRect().bottom） */
  /* メニュー開時にヘッダーの背景色をメニューに揃える */
  body.nav-open .pb-header {
    z-index: 260;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
  }
  /* メニュー文字色を確実に表示 */
  .pb-nav.is-open .pb-nav__item a {
    color: var(--pb-text, #332518) !important;
    opacity: 1 !important;
  }
  /* メニュー開時にページのスクロールを止める */
  body.nav-open { overflow: hidden; }
  /* メニュー開時にパンくず・スペーサーを完全非表示 */
  body.nav-open .pb-breadcrumb,
  body.nav-open .pb-header-spacer {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  /* メニュー開時にコンテンツ全体を隠す */
  body.nav-open #main,
  body.nav-open .wp-site-blocks > *:not(.pb-header):not(.pb-nav) {
    visibility: hidden;
  }
  .pb-nav.is-open .pb-nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  .pb-nav.is-open .pb-nav__item a {
    display: block;
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--pb-sand, #EDE4D5);
    letter-spacing: .12em;
  }
  .pb-nav.is-open .pb-nav__item:last-child a {
    border-bottom: none;
  }

  /* ハンバーガー → × アニメーション */
  .pb-header__toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .pb-header__toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .pb-header__toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* フッターグリッド1列化 */
  .pb-footer__widgets--2col,
  .pb-footer__widgets--3col {
    grid-template-columns: 1fr;
  }
  .pb-footer__tel a {
    font-size: 16px;
    padding: 10px 20px;
    width: 100%;
    justify-content: center;
  }
}

/* ── フッター ウィジェット列（空列は自動非表示） ── */
.pb-footer__widgets {
  display: grid;
  gap: 40px;
  padding: 56px clamp(24px, 5vw, 80px) 48px;
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}
.pb-footer__widgets--1col { grid-template-columns: 1fr; max-width: 400px; }
.pb-footer__widgets--2col { grid-template-columns: 1fr 1fr; }
.pb-footer__widgets--3col { grid-template-columns: 1fr 1fr 1fr; }

/* ウィジェット全体のテキスト色 */
.pb-footer__col,
.pb-footer__col h2,
.pb-footer__col h3,
.pb-footer__col h4,
.pb-footer__col h5,
.pb-footer__col p,
.pb-footer__col li,
.pb-footer__col a {
  color: rgba(255,255,255,.7);
  font-family: var(--pb-font-sans);
}
.pb-footer__col h2,
.pb-footer__col h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
}
.pb-footer__col ul {
  list-style: none;
  margin: 0; padding: 0;
}
.pb-footer__col ul li {
  padding: 4px 0;
  font-size: 13px;
}
.pb-footer__col ul li::before {
  content: '›';
  margin-right: 6px;
  opacity: .4;
}
.pb-footer__col a {
  text-decoration: none;
  transition: color .2s;
}
.pb-footer__col a:hover { color: rgba(255,255,255,1); }
/* 検索フォーム */
.pb-footer__col .search-form,
.pb-footer__col form[role="search"] {
  display: flex;
  gap: 0;
}
.pb-footer__col input[type="search"] {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-right: none;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 2px 0 0 2px;
  flex: 1;
  min-width: 0;
}
.pb-footer__col input[type="search"]::placeholder { color: rgba(255,255,255,.3); }
.pb-footer__col input[type="submit"],
.pb-footer__col button[type="submit"] {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  border-radius: 0 2px 2px 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.pb-footer__col input[type="submit"]:hover,
.pb-footer__col button[type="submit"]:hover {
  background: rgba(255,255,255,.25);
}

.pb-footer__widget-title {
  font-family: var(--pb-font-sans);
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

/* ウィジェット内の各要素 */
.pb-footer__widget ul {
  list-style: none;
  margin: 0; padding: 0;
}
.pb-footer__widget ul li {
  padding: 5px 0;
  font-family: var(--pb-font-sans);
  font-size: 13px;
}
.pb-footer__widget ul li a {
  color: var(--pb-footer-text, rgba(255,255,255,.55));
  text-decoration: none;
  transition: color .2s;
}
.pb-footer__widget ul li a:hover { color: rgba(255,255,255,.9); }
.pb-footer__widget ul li::before {
  content: '›';
  margin-right: 6px;
  opacity: .5;
}

.pb-footer__widget p {
  font-family: var(--pb-font-sans);
  font-size: 13px;
  color: var(--pb-footer-text, rgba(255,255,255,.55));
  line-height: 1.8;
  margin: 0 0 8px;
}

.pb-footer__widget a {
  color: var(--pb-footer-text, rgba(255,255,255,.55));
  text-decoration: none;
}
.pb-footer__widget a:hover { color: rgba(255,255,255,.9); }

.pb-footer__bottom {
  text-align: center;
  padding: 24px 48px;
}

/* スマホ: 1カラム */
@media (max-width: 768px) {
  .pb-footer__widgets {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 32px;
  }
  .pb-footer__bottom { padding: 20px 24px; }
}
/* タブレット: 2カラム */
@media (min-width: 769px) and (max-width: 1024px) {
  .pb-footer__widgets {
    grid-template-columns: repeat(2, 1fr);
    padding: 48px 32px 40px;
  }
}

/* ── ボックススタイル ── */
.is-style-pb-box-border-gray,
.is-style-pb-box-dashed-gray,
.is-style-pb-box-border-accent,
.is-style-pb-box-dashed-accent,
.is-style-pb-box-bg-accent,
.is-style-pb-box-bg-light,
.is-style-pb-box-bg-gray,
.is-style-pb-box-note {
  padding: 1.4em 1.6em;
  border-radius: 2px;
}

/* 線枠（グレー） */
.is-style-pb-box-border-gray {
  border: 1.5px solid #d0ccc8;
}

/* 線枠（アクセント色） */
.is-style-pb-box-border-accent {
  border: 1.5px solid var(--pb-accent);
}

/* 点線枠（グレー） */
.is-style-pb-box-dashed-gray {
  border: 1.5px dashed #c0bbb6;
}

/* 点線枠（アクセント色） */
.is-style-pb-box-dashed-accent {
  border: 1.5px dashed var(--pb-accent);
}

/* 背景（アクセント色） */
.is-style-pb-box-bg-accent {
  background: var(--pb-accent);
  color: #fff;
}

/* 背景（薄アクセント色） */
.is-style-pb-box-bg-light {
  background: var(--pb-section-bg);
}

/* 背景（グレー） */
.is-style-pb-box-bg-gray {
  background: #f0efed;
}

/* 注釈エリア */
.is-style-pb-box-note {
  background: #f8f7f5;
  border-left: 3px solid var(--pb-taupe);
  border-radius: 0;
  font-size: 0.88em;
  color: var(--pb-text-sub);
}

/* ── リストブロックスタイル ── */
/* body を前置して詳細度を上げ、!importantなしでWordPressデフォルトに勝つ */
body .is-style-pb-list-check,
body .is-style-pb-list-good,
body .is-style-pb-list-bad,
body .is-style-pb-list-arrow,
body .is-style-pb-list-note {
  list-style: none;
  padding-left: 0;
  padding-inline-start: 0;
}
body .is-style-pb-list-check > li,
body .is-style-pb-list-good > li,
body .is-style-pb-list-bad > li,
body .is-style-pb-list-arrow > li,
body body .is-style-pb-list-note > li {
  position: relative;
  padding-left: 1.8em;
  padding-inline-start: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.7;
}
body body .is-style-pb-list-check > li::before,
body body .is-style-pb-list-good > li::before,
body body .is-style-pb-list-bad > li::before,
body body .is-style-pb-list-arrow > li::before,
body body .is-style-pb-list-note > li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
  font-style: normal;
}

/* チェック */
.is-style-pb-list-check li::before {
  content: '✓';
  color: var(--pb-accent);
  font-weight: 700;
}

/* グッド（○） */
.is-style-pb-list-good li::before {
  content: '○';
  color: var(--pb-accent);
  font-weight: 700;
}

/* バッド（×） */
.is-style-pb-list-bad li::before {
  content: '✕';
  color: #b0454a;
  font-weight: 700;
}

/* 矢印 */
.is-style-pb-list-arrow li::before {
  content: '→';
  color: var(--pb-accent);
}

/* 注釈 */
.is-style-pb-list-note li {
  font-size: 0.88em;
  color: var(--pb-text-sub);
  padding-left: 1.8em;
}
.is-style-pb-list-note li::before {
  content: '※';
  color: var(--pb-text-sub);
}


/* ── Q&Aブロック（core/details）スタイル ── */

/* 共通ベース */
.is-style-pb-faq-accordion,
.is-style-pb-faq-open {
  border-top: 1px solid var(--pb-sand);
  margin-bottom: 0 !important;
}
.is-style-pb-faq-accordion + .is-style-pb-faq-accordion,
.is-style-pb-faq-open + .is-style-pb-faq-open,
.is-style-pb-faq-accordion + .is-style-pb-faq-open,
.is-style-pb-faq-open + .is-style-pb-faq-accordion {
  border-top: none;
}
.is-style-pb-faq-accordion:last-of-type,
.is-style-pb-faq-open:last-of-type {
  border-bottom: 1px solid var(--pb-sand);
}

/* Q（summary） */
.is-style-pb-faq-accordion > summary,
.is-style-pb-faq-open > summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 8px;
  font-family: var(--pb-font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--pb-text);
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.is-style-pb-faq-accordion > summary::-webkit-details-marker { display: none; }
.is-style-pb-faq-accordion > summary::marker { display: none; }

/* Q ラベル */
.is-style-pb-faq-accordion > summary::before,
.is-style-pb-faq-open > summary::before {
  content: 'Q';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pb-accent);
  color: #fff;
  font-family: var(--pb-font-sans);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* 開閉アイコン（アコーディオンのみ） */
.is-style-pb-faq-accordion > summary::after {
  content: '+';
  margin-left: auto;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--pb-accent);
  transition: transform .3s;
  line-height: 1;
}
.is-style-pb-faq-accordion[open] > summary::after {
  transform: rotate(45deg);
}
.is-style-pb-faq-accordion > summary:hover {
  color: var(--pb-accent);
}

/* A（回答エリア） */
.is-style-pb-faq-accordion > *:not(summary),
.is-style-pb-faq-open > *:not(summary) {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 8px 20px;
  font-family: var(--pb-font-serif-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--pb-text-sub);
}

/* A ラベル */
.is-style-pb-faq-accordion > *:not(summary)::before,
.is-style-pb-faq-open > *:not(summary)::before {
  content: 'A';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--pb-taupe);
  color: var(--pb-taupe);
  font-family: var(--pb-font-sans);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* 全開きは常に open 状態 */
.is-style-pb-faq-open {
  display: block;
}
.is-style-pb-faq-open > summary {
  pointer-events: none; /* クリック無効 */
  cursor: default;
}

/* ============================================================
   Lunaria: ボタンブロック スタイル拡張
   ============================================================ */

/* 共通リセット・ベース */
.wp-block-button__link {
  transition: all .28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: .06em;
  font-family: var(--pb-font-sans, sans-serif);
  font-weight: 600;
  font-size: 14px;
}

/* ── 線枠（アウトライン） ── */
.is-style-ln-btn-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid currentColor !important;
  color: var(--pb-accent, #C07A52) !important;
  padding: 12px 28px;
  border-radius: 2px;
}
.is-style-ln-btn-outline .wp-block-button__link:hover {
  background: var(--pb-accent, #C07A52) !important;
  color: #fff !important;
  border-color: var(--pb-accent, #C07A52) !important;
}

/* ── テキスト＋矢印 ── */
.is-style-ln-btn-arrow .wp-block-button__link {
  background: transparent !important;
  color: var(--pb-accent, #C07A52) !important;
  padding: 8px 4px !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1.5px solid var(--pb-accent, #C07A52) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.is-style-ln-btn-arrow .wp-block-button__link::after {
  content: '→';
  font-size: 16px;
  transition: transform .25s ease;
  display: inline-block;
}
.is-style-ln-btn-arrow .wp-block-button__link:hover::after {
  transform: translateX(5px);
}
.is-style-ln-btn-arrow .wp-block-button__link:hover {
  background: transparent !important;
  opacity: .75;
}

/* ── 角丸ピル型 ── */
.is-style-ln-btn-pill .wp-block-button__link {
  border-radius: 999px !important;
  padding: 12px 32px;
  background: var(--pb-accent, #C07A52) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(192, 122, 82, .28);
}
.is-style-ln-btn-pill .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 122, 82, .36);
}

/* ── グラデーション ── */
.is-style-ln-btn-gradient .wp-block-button__link {
  background: linear-gradient(
    135deg,
    var(--pb-accent, #C07A52) 0%,
    var(--pb-gold, #C4944A) 100%
  ) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px;
  padding: 13px 30px;
  box-shadow: 0 4px 14px rgba(192, 122, 82, .3);
  position: relative;
  overflow: hidden;
}
.is-style-ln-btn-gradient .wp-block-button__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--pb-gold, #C4944A) 0%,
    var(--pb-accent, #C07A52) 100%
  );
  opacity: 0;
  transition: opacity .3s ease;
}
.is-style-ln-btn-gradient .wp-block-button__link:hover::before {
  opacity: 1;
}
.is-style-ln-btn-gradient .wp-block-button__link span {
  position: relative;
  z-index: 1;
}

/* ── ゴースト（透明・白文字想定） ── */
.is-style-ln-btn-ghost .wp-block-button__link {
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,.7) !important;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.is-style-ln-btn-ghost .wp-block-button__link:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: #fff !important;
}

/* ============================================================
   Lunaria: 見出しブロック スタイル拡張
   ============================================================ */

/* 共通リセット */
.is-style-ln-h-line-left,
.is-style-ln-h-line-both,
.is-style-ln-h-border-left,
.is-style-ln-h-underline,
.is-style-ln-h-bg-accent,
.is-style-ln-h-badge,
.is-style-ln-h-stripe,
.is-style-ln-h-icon-star,
.is-style-ln-h-icon-leaf,
.is-style-ln-h-icon-camera {
  font-family: var(--pb-font-sans, sans-serif);
  letter-spacing: .06em;
}

/* ── 左ライン ── */
.is-style-ln-h-line-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.is-style-ln-h-line-left::before {
  content: '';
  display: block;
  width: 3px;
  height: 1em;
  background: var(--pb-accent, #C07A52);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── 両サイドライン ── */
.is-style-ln-h-line-both {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: center;
  justify-content: center;
}
.is-style-ln-h-line-both::before,
.is-style-ln-h-line-both::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pb-taupe, #C9B99A);
}

/* ── 左ボーダー ── */
.is-style-ln-h-border-left {
  border-left: 4px solid var(--pb-accent, #C07A52);
  padding-left: 16px;
  margin-left: 0;
}

/* ── アンダーライン ── */
.is-style-ln-h-underline {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pb-accent, #C07A52);
  position: relative;
}
.is-style-ln-h-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--pb-taupe, #C9B99A);
}

/* ── アクセント背景 ── */
.is-style-ln-h-bg-accent {
  background: var(--pb-accent, #C07A52);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 2px;
}

/* ── バッジ（丸角背景） ── */
.is-style-ln-h-badge {
  background: var(--pb-section-bg, #FAF7F2);
  border: 1px solid var(--pb-sand, #EDE4D5);
  padding: 10px 24px;
  border-radius: 999px;
  display: inline-block;
}

/* ── ストライプ背景 ── */
.is-style-ln-h-stripe {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(192,122,82,.08) 4px,
    rgba(192,122,82,.08) 8px
  );
  padding: 10px 16px;
  border-left: 3px solid var(--pb-accent, #C07A52);
}

/* ── Font Awesome アイコン付き ── */
.is-style-ln-h-icon-star::before,
.is-style-ln-h-icon-leaf::before,
.is-style-ln-h-icon-camera::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--pb-accent, #C07A52);
  margin-right: 10px;
  font-size: .85em;
}
.is-style-ln-h-icon-star::before   { content: '\f005'; } /* fa-star */
.is-style-ln-h-icon-leaf::before   { content: '\f06c'; } /* fa-leaf */
.is-style-ln-h-icon-camera::before { content: '\f030'; } /* fa-camera */

/* ============================================================
   Font Awesome ショートハンド（本文中でのアイコン埋め込み用）
   例: <i class="fa-solid fa-star"></i>
   ============================================================ */
/* Font AwesomeはCDNで読み込み済みのためCSSの追加は不要 */

/* ════════════════════════════════
   固定CTAバー（スマホ専用）
   ════════════════════════════════ */
.pb-cta-bar {
  display: none;
}
@media (max-width: 768px) {
  .pb-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 500;
    height: 56px;
    box-shadow: 0 -2px 12px rgba(0,0,0,.15);
  }
  .pb-cta-bar__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: var(--pb-font-sans, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    color: #fff;
    transition: opacity .2s;
  }
  .pb-cta-bar__btn:active { opacity: .8; }
  .pb-cta-bar__btn--tel  { background: var(--pb-accent, #C07A52); }
  .pb-cta-bar__btn--mail { background: #555; }
  .pb-cta-bar__btn--line { background: #06C755; }
  /* CTAバー分のpadding-bottomをbodyに追加 */
  body { padding-bottom: 56px; }
  /* メニュー開時はCTAバーを非表示 */
  body.nav-open .pb-cta-bar { display: none; }
}

/* =========================================
   core/media-text — Lunaria スタイル
   ========================================= */
.wp-block-media-text {
  gap: 0;
  align-items: stretch;
}

/* 画像エリア */
.wp-block-media-text .wp-block-media-text__media {
  overflow: hidden;
}
.wp-block-media-text .wp-block-media-text__media img,
.wp-block-media-text .wp-block-media-text__media figure {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストエリア */
.wp-block-media-text .wp-block-media-text__content {
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--pb-warm-white);
}

/* 見出し */
.wp-block-media-text .wp-block-media-text__content h2,
.wp-block-media-text .wp-block-media-text__content h3 {
  font-family: var(--pb-font-serif);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 600;
  color: var(--pb-deep-brown);
  line-height: 1.5;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

/* 本文 */
.wp-block-media-text .wp-block-media-text__content p {
  font-family: var(--pb-font-sans);
  font-size: 14px;
  color: var(--pb-text-sub);
  line-height: 1.9;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

/* リンク・ボタン */
.wp-block-media-text .wp-block-media-text__content a:not(.wp-block-button__link) {
  color: var(--pb-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wp-block-media-text .wp-block-media-text__content .wp-block-button__link {
  background: var(--pb-accent);
  color: #fff;
  border-radius: 2px;
  font-family: var(--pb-font-sans);
  font-size: 13px;
  letter-spacing: .12em;
  padding: 14px 32px;
  border: none;
  transition: background .25s ease, transform .25s ease;
}
.wp-block-media-text .wp-block-media-text__content .wp-block-button__link:hover {
  background: var(--pb-accent-dark);
  transform: translateY(-2px);
}
.wp-block-media-text .wp-block-media-text__content .wp-block-button {
  margin-top: 8px;
}

/* セクション背景（交互）*/
.wp-block-media-text:nth-child(even) .wp-block-media-text__content {
  background: var(--pb-section-bg);
}

/* スマホ */
@media (max-width: 768px) {
  .wp-block-media-text {
    grid-template-columns: 1fr !important;
  }
  .wp-block-media-text .wp-block-media-text__media {
    min-height: 240px;
  }
  .wp-block-media-text .wp-block-media-text__content {
    padding: 36px 24px;
  }
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    order: -1;
  }
}

/* ── 予約フォームページではCTAバーを非表示 ── */
.page-template-page-booking .pb-cta-bar,
body:has(.lb-form-wrap) .pb-cta-bar {
  display: none !important;
}
body:has(.lb-form-wrap) {
  padding-bottom: 0 !important;
}
