/* ==========================================================================
   ラクホム（rakuhomu.com）スタイルシート
   設計思想: STUDIO / Note / Notion / Stripe に学んだ余白と極細ボーダーの美学
   カラーシステム: ベース #FAFAFA / カード #FFFFFF / 境界線 #E4E4E7 / 主文字 #18181B
   ========================================================================== */

:root {
  /* サービス本体・管理画面のカラートークン */
  --bg-base: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F4F4F5;
  --border-default: #E4E4E7;
  --border-strong: #D4D4D8;
  --text-primary: #18181B;
  --text-secondary: #71717A;
  --text-muted: #A1A1AA;
  --action-primary: #18181B;
  --action-primary-hover: #27272A;
  --accent-emerald: #059669;
  --accent-emerald-bg: #ECFDF5;
  --accent-emerald-border: #A7F3D0;
  --danger-color: #DC2626;

  /* タイポグラフィ設定 */
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', Georgia, serif;
}

/* ベースリセットと日本語タイポグラフィ最適化 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: #F7FAF9;
  background-image:
    radial-gradient(at 8% 0%, rgba(209, 250, 229, 0.50) 0px, transparent 50%),
    radial-gradient(at 92% 4%, rgba(224, 242, 254, 0.54) 0px, transparent 48%),
    radial-gradient(at 50% 96%, rgba(254, 243, 199, 0.34) 0px, transparent 52%),
    linear-gradient(180deg, #F8FCFA 0%, #FDFCF8 52%, #F5F9FC 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.75;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}

/* 公開ユーザーページ専用ボディ（サービス本体のグラデーションを打ち消し、テーマ固有背景を適用） */
body.pub-body {
  background-image: none;
  background-attachment: scroll;
}

/* サービスLPファーストビュー：安心感のある淡い多層グラデーション */
.rk-hero-gradient {
  background-color: #FFFFFF;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(209, 250, 229, 0.58) 0%, transparent 48%),
    radial-gradient(circle at 86% 24%, rgba(224, 242, 254, 0.62) 0%, transparent 50%),
    radial-gradient(circle at 60% 92%, rgba(254, 243, 199, 0.42) 0%, transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 252, 249, 0.88) 52%, rgba(244, 249, 254, 0.92) 100%);
}

/* 料金・特徴セクション用の柔らかなグラデーション帯 */
.rk-section-soft {
  background-color: rgba(255, 255, 255, 0.78);
  background-image:
    radial-gradient(circle at 90% 15%, rgba(209, 250, 229, 0.32) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(224, 242, 254, 0.34) 0%, transparent 45%);
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-primary);
}

/* フォーカスリングの統一 */
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.14);
}

/* カスタムスクロールバー（控えめで洗練された外観） */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #D4D4D8;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A1A1AA;
}

/* ==========================================================================
   サービス本体コンポーネント（カード・ボタン・フォーム）
   ========================================================================== */

.rk-card {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 14px;
  box-shadow: 0 4px 20px -10px rgba(24, 24, 27, 0.07);
}

.rk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--action-primary);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--action-primary);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.rk-btn-primary:hover {
  background-color: var(--action-primary-hover);
  border-color: var(--action-primary-hover);
}

.rk-btn-primary:active {
  transform: translateY(0.5px);
}

.rk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.rk-btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
}

.rk-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rk-btn-ghost:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.rk-input,
.rk-select,
.rk-textarea {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rk-input:hover,
.rk-select:hover,
.rk-textarea:hover {
  border-color: var(--border-strong);
}

.rk-input:focus,
.rk-select:focus,
.rk-textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.08);
}

.rk-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.rk-help {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 4px;
}

/* ナビゲーションタブ */
.rk-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.rk-nav-tab:hover {
  color: var(--text-primary);
}

.rk-nav-tab.is-active {
  background-color: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--border-default);
}

/* カテゴリフィルタチップ */
.rk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: #FFFFFF;
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.rk-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.rk-chip.is-active {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFFFF;
}

/* トグルスイッチ */
.rk-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

.rk-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.rk-switch-track {
  position: absolute;
  inset: 0;
  background-color: #D4D4D8;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.rk-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.rk-switch input:checked + .rk-switch-track {
  background-color: var(--accent-emerald);
}

.rk-switch input:checked + .rk-switch-track::after {
  transform: translateX(18px);
}

/* ==========================================================================
   iPhone モックアップフレーム（LP・エディタ・公開ページのスマホ表示共用）
   ========================================================================== */

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
  background-color: #18181B;
  border-radius: 44px;
  padding: 11px;
  border: 1px solid #27272A;
  box-shadow: 0 18px 40px -22px rgba(24, 24, 27, 0.28);
}

.phone-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.phone-screen-editor {
  height: 690px;
}

.phone-screen-hero {
  height: 580px;
}

.phone-screen-public {
  min-height: 760px;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  user-select: none;
}

.phone-notch {
  width: 84px;
  height: 22px;
  background-color: #18181B;
  border-radius: 9999px;
}

.phone-addressbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 2px 16px 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.phone-viewport {
  flex: 1;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   公開ユーザーページ 3テーマ設計（Minimal Paper / Clean Corporate / Dark Studio）
   ========================================================================== */

.pub-page {
  --pub-bg: #F9F8F6;
  --pub-surface: #FFFFFF;
  --pub-surface-subtle: #F3F1EC;
  --pub-border: #E6E2D8;
  --pub-text: #1C1917;
  --pub-text-sub: #78716C;
  --pub-accent: #292524;
  --pub-accent-text: #FFFFFF;
  --pub-heading-font: var(--font-serif);
  --pub-radius: 10px;
  --pub-ad-bg: #F3F0E8;
  --pub-ad-border: #E5E0D5;
  --pub-bar-bg: rgba(249, 248, 246, 0.94);

  background-color: var(--pub-bg);
  color: var(--pub-text);
  font-family: var(--font-sans);
  line-height: 1.75;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Theme A: Minimal Paper（和モダン・余白重視） */
.pub-page.theme-minimal {
  --pub-bg: #F9F8F6;
  --pub-surface: #FFFFFF;
  --pub-surface-subtle: #F3F1EC;
  --pub-border: #E6E2D8;
  --pub-text: #1C1917;
  --pub-text-sub: #78716C;
  --pub-accent: #292524;
  --pub-accent-text: #FFFFFF;
  --pub-heading-font: var(--font-serif);
  --pub-radius: 8px;
  --pub-ad-bg: #F2EFE9;
  --pub-ad-border: #E4DFD4;
  --pub-bar-bg: rgba(249, 248, 246, 0.95);
  --pub-page-overlay: rgba(249, 248, 246, 0.84);
  --pub-header-overlay: rgba(249, 248, 246, 0.74);
  --pub-panel-overlay: rgba(255, 255, 255, 0.80);
}

/* Theme B: Clean Corporate（信頼・ビジネス特化） */
.pub-page.theme-corporate {
  --pub-bg: #F8FAFC;
  --pub-surface: #FFFFFF;
  --pub-surface-subtle: #F1F5F9;
  --pub-border: #E2E8F0;
  --pub-text: #0F172A;
  --pub-text-sub: #64748B;
  --pub-accent: #1E3A5F;
  --pub-accent-text: #FFFFFF;
  --pub-heading-font: var(--font-sans);
  --pub-radius: 10px;
  --pub-ad-bg: #F1F5F9;
  --pub-ad-border: #E2E8F0;
  --pub-bar-bg: rgba(255, 255, 255, 0.96);
  --pub-page-overlay: rgba(248, 250, 252, 0.86);
  --pub-header-overlay: rgba(255, 255, 255, 0.82);
  --pub-panel-overlay: rgba(255, 255, 255, 0.84);
}

/* Theme C: Dark Studio（クリエイター・飲食店向け） */
.pub-page.theme-dark {
  --pub-bg: #121214;
  --pub-surface: #1A1A1E;
  --pub-surface-subtle: #222228;
  --pub-border: #2B2B33;
  --pub-text: #F4F4F5;
  --pub-text-sub: #A1A1AA;
  --pub-accent: #FAFAFA;
  --pub-accent-text: #121214;
  --pub-heading-font: var(--font-sans);
  --pub-radius: 10px;
  --pub-ad-bg: #17171B;
  --pub-ad-border: #27272E;
  --pub-bar-bg: rgba(18, 18, 20, 0.94);
  --pub-page-overlay: rgba(18, 18, 20, 0.80);
  --pub-header-overlay: rgba(18, 18, 20, 0.68);
  --pub-panel-overlay: rgba(24, 24, 28, 0.76);
}

/* 全体背景画像・セクション背景画像（テーマ連動の白/黒半透過オーバーレイ） */
.pub-page.has-page-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pub-page.has-page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--pub-page-overlay);
  pointer-events: none;
  z-index: 0;
}

.pub-page.has-page-bg > * {
  position: relative;
  z-index: 1;
}

.pub-header-bg {
  position: relative;
  overflow: hidden;
  border-radius: var(--pub-radius);
  border: 1px solid var(--pub-border);
  padding: 22px 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pub-header-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--pub-header-overlay);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  pointer-events: none;
  z-index: 0;
}

.pub-header-bg > * {
  position: relative;
  z-index: 1;
}

.pub-card.has-section-bg {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pub-card.has-section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--pub-panel-overlay);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  pointer-events: none;
  z-index: 0;
}

.pub-card.has-section-bg > * {
  position: relative;
  z-index: 1;
}

/* メニュー項目のサムネイル画像 */
.pub-menu-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--pub-border);
  flex-shrink: 0;
}

/* 公開ページ内部要素（モバイル標準＋PC全画面リッチ対応） */
.pub-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 0 24px;
  flex: 1;
}

/* モバイル用スティッキーヘッダー＆ドロワーメニュー（スマホでの操作性向上） */
.pub-mobile-nav {
  display: block;
  position: sticky;
  top: 0;
  z-index: 35;
  width: 100%;
  background-color: var(--pub-bar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pub-border);
}

.pub-mobile-nav-inner {
  min-height: 54px;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pub-mobile-nav-name {
  font-weight: 600;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pub-mobile-nav-name.is-brand-sm {
  font-size: 0.8125rem;
}

.pub-mobile-nav-name.is-brand-md {
  font-size: 0.75rem;
}

.pub-mobile-nav-name.is-brand-lg {
  font-size: 0.6875rem;
}

.pub-mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background-color: var(--pub-surface);
  color: var(--pub-text);
  border: 1px solid var(--pub-border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.pub-mobile-menu-btn:hover {
  opacity: 0.85;
}

.pub-mobile-drawer {
  display: none;
  background-color: var(--pub-surface);
  border-bottom: 1px solid var(--pub-border);
  padding: 10px 16px 16px;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.22);
}

.pub-mobile-drawer.is-open {
  display: block;
}

.pub-mobile-drawer-list {
  display: flex;
  flex-direction: column;
}

.pub-mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--pub-text);
  text-decoration: none;
  border-bottom: 1px solid var(--pub-border);
}

.pub-mobile-drawer-link:last-child {
  border-bottom: none;
}

/* モバイル時はデスクトップ専用ナビを非表示 */
.pub-desktop-nav {
  display: none;
}

/* PCナビ「その他 ▾」ドロップダウン（セクション数が多い場合も1行維持） */
.pub-nav-more {
  position: relative;
  flex-shrink: 0;
}

.pub-nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pub-text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.pub-nav-more-btn:hover {
  color: var(--pub-text);
  background-color: var(--pub-surface-subtle);
}

.pub-nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background-color: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.24);
  z-index: 50;
}

.pub-nav-more.is-open .pub-nav-more-menu,
.pub-nav-more:hover .pub-nav-more-menu {
  display: flex;
  flex-direction: column;
}

.pub-nav-more-item {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pub-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.pub-nav-more-item:hover {
  background-color: var(--pub-surface-subtle);
}

/* セクションバンド共通（モバイルはコンパクト、PCは全幅リズム帯） */
.pub-band {
  width: 100%;
  scroll-margin-top: 64px;
}

.pub-band-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TCD風セクション見出しの英字サブラベル（モバイルは控えめ・PCは大きく演出） */
.pub-section-eyebrow {
  display: none;
}

.pub-section-header {
  margin-bottom: 14px;
}

.pub-section-header .pub-section-title {
  margin-bottom: 0;
}

/* ヒーロー領域（モバイルでは自然なヘッダー、PCでは全幅シネマティックヒーロー） */
.pub-hero {
  width: 100%;
  position: relative;
}

.pub-hero-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 8px;
}

.pub-hero-grid {
  display: block;
}

.pub-hero-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* メニューグリッド（モバイル1列・PC2列カード） */
.pub-menu-grid {
  display: flex;
  flex-direction: column;
}

.pub-menu-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--pub-border);
}

.pub-menu-item:first-child {
  padding-top: 0;
}

.pub-menu-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* お知らせリスト（モバイル縦積み・PCエディトリアル2列） */
.pub-notice-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--pub-border);
  display: block;
}

.pub-notice-row:first-child {
  padding-top: 0;
}

.pub-notice-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* 営業時間・アクセス（モバイル縦積み・PC左右2カラムスプリット） */
.pub-access-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* フォトギャラリー（モバイル2列・PC3列TCD風カードグリッド） */
.pub-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pub-gallery-grid.is-single {
  grid-template-columns: 1fr;
}

.pub-gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--pub-radius);
  border: 1px solid var(--pub-border);
  background-color: var(--pub-surface);
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-gallery-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--pub-surface-subtle);
}

.pub-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pub-gallery-card:hover .pub-gallery-img {
  transform: scale(1.04);
}

.pub-gallery-caption {
  padding: 8px 10px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--pub-text-sub);
  border-top: 1px solid var(--pub-border);
}

/* フォトギャラリー拡大ライトボックス */
.pub-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background-color: rgba(12, 12, 15, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pub-lightbox.is-open {
  display: flex;
}

.pub-lightbox-inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pub-lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pub-lightbox-caption {
  margin-top: 14px;
  color: #F4F4F5;
  font-size: 0.875rem;
  text-align: center;
  max-width: 720px;
  line-height: 1.6;
}

.pub-lightbox-close,
.pub-lightbox-nav {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pub-lightbox-close:hover,
.pub-lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.26);
}

.pub-lightbox-close {
  top: 18px;
  right: 18px;
}

.pub-lightbox-nav.is-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.pub-lightbox-nav.is-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* コンセプト・こだわり（モバイル縦積み・PCはTCD風ジグザグ2カラム） */
.pub-concept-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-concept-row {
  background-color: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pub-concept-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--pub-surface-subtle);
}

.pub-concept-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-concept-body {
  padding: 18px;
}

/* クーポン（サロン風 / 飲食店チケット風） */
.pub-coupon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pub-coupon-card {
  position: relative;
  background-color: var(--pub-surface);
  color: var(--pub-text);
  overflow: hidden;
}

/* サロン風：繊細な二重枠と優雅な余白 */
.pub-coupon-card.style-salon {
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  padding: 8px;
}

.pub-coupon-card.style-salon .pub-coupon-inner {
  border: 1px solid var(--pub-border);
  border-radius: 8px;
  padding: 18px 16px;
}

.pub-coupon-card.style-salon .pub-coupon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pub-text-sub);
  border-bottom: 1px solid var(--pub-border);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

/* 飲食店風：切り取りミシン目＆左右ノッチ付きチケットデザイン */
.pub-coupon-card.style-restaurant {
  border: 2px dashed var(--pub-accent);
  border-radius: 12px;
  padding: 0;
}

.pub-coupon-card.style-restaurant .pub-coupon-inner {
  padding: 18px 16px;
}

.pub-coupon-card.style-restaurant .pub-coupon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  background-color: var(--pub-accent);
  color: var(--pub-accent-text);
  margin-bottom: 10px;
}

.pub-coupon-divider {
  margin: 12px 0;
  border-top: 1px dashed var(--pub-border);
}

.pub-coupon-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--pub-text-sub);
  line-height: 1.6;
}

/* お客様の声・実績 ＆ スタッフ紹介（丸型 / 四角型 / 角丸型スタイル対応） */
.pub-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pub-profile-card {
  background-color: var(--pub-surface);
  border: 1px solid var(--pub-border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-profile-grid.shape-circle .pub-profile-card {
  border-radius: 22px;
}

.pub-profile-grid.shape-square .pub-profile-card {
  border-radius: 3px;
}

.pub-profile-grid.shape-rounded .pub-profile-card {
  border-radius: 12px;
}

.pub-profile-photo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 1px solid var(--pub-border);
  flex-shrink: 0;
  background-color: var(--pub-surface-subtle);
}

.pub-profile-grid.shape-circle .pub-profile-photo {
  border-radius: 9999px;
}

.pub-profile-grid.shape-square .pub-profile-photo {
  border-radius: 2px;
}

.pub-profile-grid.shape-rounded .pub-profile-photo {
  border-radius: 12px;
}

/* スタッフ紹介専用：大きめ写真＋キューブ型ポートレートカード（お客様の声と明確に差別化） */
.pub-staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pub-staff-card {
  background-color: var(--pub-surface);
  border: 1px solid var(--pub-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-staff-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--pub-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-staff-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-staff-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-staff-role {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--pub-text-sub);
}

.pub-staff-divider {
  width: 24px;
  height: 2px;
  background-color: var(--pub-accent);
  opacity: 0.55;
  margin: 10px 0 12px;
}

/* スタッフ紹介：フォーマル四角型（エッジの効いたフルキューブ） */
.pub-staff-grid.shape-square .pub-staff-card {
  border-radius: 4px;
}

.pub-staff-grid.shape-square .pub-staff-media {
  border-bottom: 1px solid var(--pub-border);
}

/* スタッフ紹介：バランス角丸型（上品な角丸キューブ） */
.pub-staff-grid.shape-rounded .pub-staff-card {
  border-radius: 16px;
  padding: 14px;
}

.pub-staff-grid.shape-rounded .pub-staff-media {
  border-radius: 12px;
  border: 1px solid var(--pub-border);
}

.pub-staff-grid.shape-rounded .pub-staff-body {
  padding: 14px 4px 4px;
}

/* スタッフ紹介：かわいらしい丸型（大きめ正円ポートレート＋柔らかキューブカード） */
.pub-staff-grid.shape-circle .pub-staff-card {
  border-radius: 22px;
  padding: 24px 18px 20px;
  align-items: center;
  text-align: center;
}

.pub-staff-grid.shape-circle .pub-staff-media {
  width: 132px;
  height: 132px;
  border-radius: 9999px;
  border: 2px solid var(--pub-border);
  margin: 0 auto;
}

.pub-staff-grid.shape-circle .pub-staff-body {
  padding: 14px 0 0;
  align-items: center;
}

.pub-staff-grid.shape-circle .pub-staff-divider {
  margin-left: auto;
  margin-right: auto;
}

/* エディタ用：ユニバーサルデザイン対応キーカラーパレット（ホバー色名ツールチップ付き） */
.rk-color-swatch-wrap {
  position: relative;
  display: inline-flex;
}

.rk-color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 2px solid rgba(24, 24, 27, 0.14);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  padding: 0;
}

.rk-color-swatch:hover {
  transform: scale(1.1);
}

.rk-color-swatch.is-selected {
  border-color: #18181B;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #18181B;
}

.rk-color-swatch.is-default-swatch {
  background: conic-gradient(from 180deg, #292524 0deg 120deg, #1E3A5F 120deg 240deg, #E4E4E7 240deg 360deg);
}

.rk-color-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #18181B;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 30;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.25);
}

.rk-color-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #18181B;
}

.rk-color-swatch-wrap:hover .rk-color-tooltip,
.rk-color-swatch-wrap:focus-within .rk-color-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* フルワイドフッター内グリッド */
.pub-footer-band {
  width: 100%;
}

.pub-footer-top {
  display: none;
}

.pub-page.is-desktop-view {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* ==========================================================================
   公開ユーザーページ：PC全画面リッチレイアウト（TCDワードプレステーマ風）
   適用条件: PC幅（960px以上・スマホプレビュー除外）またはエディタPC幅プレビュー
   ========================================================================== */
@media (min-width: 960px) {
  .pub-page:not(.is-phone-preview) .pub-corp-banner {
    padding: 8px 40px;
    font-size: 0.75rem;
  }

  /* 1. フルブリード・スティッキーグローバルナビ（PC時はモバイルヘッダー非表示・絶対1行維持） */
  .pub-page:not(.is-phone-preview) .pub-mobile-nav {
    display: none;
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 35;
    width: 100%;
    background-color: var(--pub-bar-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pub-border);
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: nowrap;
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 360px;
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-name {
    font-weight: 600;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-name.is-brand-sm {
    font-size: 0.95rem;
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-name.is-brand-md {
    font-size: 0.84rem;
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-name.is-brand-lg {
    font-size: 0.76rem;
  }

  @media (min-width: 1280px) {
    .pub-page:not(.is-phone-preview) .pub-desktop-nav-brand {
      max-width: 420px;
    }
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-links {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--pub-text-sub);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 11em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-link:hover {
    color: var(--pub-text);
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    max-width: 220px;
    border-radius: var(--pub-radius);
    background-color: var(--pub-accent);
    color: var(--pub-accent-text);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
  }

  .pub-page:not(.is-phone-preview) .pub-desktop-nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  /* 2. TCD風フルワイド・シネマティックヒーロー */
  .pub-page:not(.is-phone-preview) .pub-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--pub-border);
    overflow: hidden;
  }

  /* ヒーロー背景画像未設定時：テーマ別の上質なスタジオグラデーションを自動生成 */
  .pub-page.theme-minimal:not(.is-phone-preview) .pub-hero:not(.has-hero-bg) {
    background-image:
      radial-gradient(circle at 82% 20%, rgba(214, 206, 192, 0.42) 0%, transparent 52%),
      radial-gradient(circle at 14% 85%, rgba(231, 224, 212, 0.48) 0%, transparent 50%),
      linear-gradient(135deg, #FBF9F5 0%, #F4EFE6 100%);
  }

  .pub-page.theme-corporate:not(.is-phone-preview) .pub-hero:not(.has-hero-bg) {
    background-image:
      radial-gradient(circle at 88% 15%, rgba(30, 58, 95, 0.11) 0%, transparent 48%),
      radial-gradient(circle at 10% 90%, rgba(148, 163, 184, 0.16) 0%, transparent 52%),
      linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  }

  .pub-page.theme-dark:not(.is-phone-preview) .pub-hero:not(.has-hero-bg) {
    background-image:
      radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 48%),
      radial-gradient(circle at 18% 85%, rgba(161, 161, 170, 0.07) 0%, transparent 45%),
      linear-gradient(135deg, #16161B 0%, #0D0D10 100%);
  }

  /* ヒーロー背景画像設定時：テーマ連動の洗練オーバーレイ（写真をリッチに活かしつつ文字をくっきり） */
  .pub-page:not(.is-phone-preview) .pub-hero.has-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .pub-page.theme-minimal:not(.is-phone-preview) .pub-hero.has-hero-bg::before {
    background: linear-gradient(180deg, rgba(249, 248, 246, 0.70) 0%, rgba(249, 248, 246, 0.82) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .pub-page.theme-corporate:not(.is-phone-preview) .pub-hero.has-hero-bg::before {
    background: linear-gradient(95deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.80) 58%, rgba(30, 58, 95, 0.25) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .pub-page.theme-dark:not(.is-phone-preview) .pub-hero.has-hero-bg::before {
    background: linear-gradient(180deg, rgba(14, 14, 18, 0.62) 0%, rgba(14, 14, 18, 0.80) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .pub-page:not(.is-phone-preview) .pub-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    padding: 84px 40px 80px;
  }

  /* モバイル用ヘッダー箱装飾をPCヒーロー内では解除して全幅に解放 */
  .pub-page:not(.is-phone-preview) .pub-hero .pub-header-bg {
    background-image: none !important;
    border: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
  }

  .pub-page:not(.is-phone-preview) .pub-hero .pub-header-bg::before {
    display: none;
  }

  /* Theme B（Corporate）：左プロフィール＋右アクションカードの2カラムTCD構成 */
  .pub-page.theme-corporate:not(.is-phone-preview) .pub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 48px;
    align-items: center;
  }

  .pub-page.theme-corporate:not(.is-phone-preview) .pub-hero-actions {
    margin-top: 0;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--pub-border);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 20px 44px -26px rgba(15, 23, 42, 0.22);
  }

  /* Theme A / C：優雅な中央揃え大見出し＋横並びボタングリッド */
  .pub-page:not(.theme-corporate):not(.is-phone-preview) .pub-hero-lead {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
  }

  .pub-page:not(.theme-corporate):not(.is-phone-preview) .pub-hero-bio {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 0.96rem;
    line-height: 2;
  }

  .pub-page:not(.is-phone-preview) .pub-hero-title {
    font-size: clamp(2.1rem, 3.6vw, 3.1rem);
    line-height: 1.25;
    letter-spacing: 0.02em;
  }

  .pub-page:not(.is-phone-preview) .pub-hero-subtitle {
    font-size: 1.05rem;
    margin-top: 12px;
  }

  .pub-page:not(.theme-corporate):not(.is-phone-preview) .pub-hero-actions {
    max-width: 820px;
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
  }

  .pub-page:not(.is-phone-preview) .pub-action-btn {
    padding: 15px 22px;
    font-size: 0.9rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  }

  .pub-page:not(.is-phone-preview) .pub-hero-title.is-title-long {
    font-size: 2.05rem;
  }

  .pub-page:not(.is-phone-preview) .pub-hero-title.is-title-xl {
    font-size: 1.72rem;
  }

  .pub-page:not(.is-phone-preview) .pub-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.28);
    opacity: 0.96;
  }

  /* 3. 全幅セクションバンド＆ワイドコンテナ（1160px） */
  .pub-page:not(.is-phone-preview) .pub-container {
    max-width: none;
    padding: 0;
  }

  .pub-page:not(.is-phone-preview) .pub-band {
    padding: 76px 0;
    border-bottom: 1px solid var(--pub-border);
    scroll-margin-top: 76px;
  }

  .pub-page:not(.is-phone-preview) .pub-band.is-alt {
    background-color: var(--pub-surface-subtle);
  }

  .pub-page.theme-minimal:not(.is-phone-preview) .pub-band.is-alt {
    background-color: rgba(243, 241, 236, 0.65);
  }

  .pub-page.theme-corporate:not(.is-phone-preview) .pub-band.is-alt {
    background-color: rgba(241, 245, 249, 0.72);
  }

  .pub-page.theme-dark:not(.is-phone-preview) .pub-band.is-alt {
    background-color: rgba(34, 34, 40, 0.68);
  }

  .pub-page:not(.is-phone-preview) .pub-band-inner {
    max-width: 1120px;
    padding: 0 40px;
  }

  /* TCD風セクション見出し（英字サブラベル＋堂々たる日本語見出し） */
  .pub-page:not(.is-phone-preview) .pub-section-header {
    text-align: center;
    margin-bottom: 42px;
  }

  .pub-page.theme-corporate:not(.is-phone-preview) .pub-section-header {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pub-border);
  }

  .pub-page:not(.is-phone-preview) .pub-section-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pub-text-sub);
    margin-bottom: 8px;
  }

  .pub-page:not(.is-phone-preview) .pub-section-title {
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

  .pub-page.theme-corporate:not(.is-phone-preview) .pub-section-title {
    justify-content: flex-start;
  }

  .pub-page:not(.is-phone-preview) .pub-section-title i,
  .pub-page:not(.is-phone-preview) .pub-section-title svg {
    width: 20px;
    height: 20px;
  }

  .pub-page:not(.is-phone-preview) .pub-card {
    padding: 34px 38px;
    border-radius: 14px;
  }

  /* お知らせ：TCD風2カラム・エディトリアル行 */
  .pub-page:not(.is-phone-preview) .pub-notice-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    padding: 20px 0;
    align-items: baseline;
  }

  .pub-page:not(.is-phone-preview) .pub-notice-row h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .pub-page:not(.is-phone-preview) .pub-notice-row p {
    font-size: 0.875rem;
    line-height: 1.85;
  }

  /* メニュー・料金表：2カラム・ラグジュアリーカードグリッド */
  .pub-page:not(.is-phone-preview) .pub-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .pub-page:not(.is-phone-preview) .pub-menu-item {
    padding: 20px 22px;
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    background-color: var(--pub-surface);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .pub-page:not(.is-phone-preview) .pub-menu-item:first-child,
  .pub-page:not(.is-phone-preview) .pub-menu-item:last-child {
    padding: 20px 22px;
    border-bottom: 1px solid var(--pub-border);
  }

  .pub-page:not(.is-phone-preview) .pub-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.18);
  }

  .pub-page:not(.is-phone-preview) .pub-menu-thumb {
    width: 92px;
    height: 92px;
    border-radius: 10px;
  }

  /* 営業時間・アクセス：左右2カラムスプリット */
  .pub-page:not(.is-phone-preview) .pub-access-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: stretch;
  }

  /* フォトギャラリー：TCD風3カラム（2枚・4枚時は美しい2列） */
  .pub-page:not(.is-phone-preview) .pub-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .pub-page:not(.is-phone-preview) .pub-gallery-grid.is-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .pub-page:not(.is-phone-preview) .pub-gallery-grid.is-single {
    grid-template-columns: 1fr;
    max-width: 780px;
    margin: 0 auto;
  }

  .pub-page:not(.is-phone-preview) .pub-gallery-card {
    border-radius: 14px;
  }

  .pub-page:not(.is-phone-preview) .pub-gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.25);
  }

  .pub-page:not(.is-phone-preview) .pub-gallery-caption {
    padding: 12px 16px;
    font-size: 0.8125rem;
  }

  /* コンセプト・こだわり：TCD風ジグザグ交互2カラム */
  .pub-page:not(.is-phone-preview) .pub-concept-list {
    gap: 36px;
  }

  .pub-page:not(.is-phone-preview) .pub-concept-row.has-media {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    border-radius: 16px;
  }

  .pub-page:not(.is-phone-preview) .pub-concept-row.has-media:nth-child(even) .pub-concept-media {
    order: 2;
  }

  .pub-page:not(.is-phone-preview) .pub-concept-row.has-media:nth-child(even) .pub-concept-body {
    order: 1;
  }

  .pub-page:not(.is-phone-preview) .pub-concept-media {
    aspect-ratio: auto;
    min-height: 280px;
  }

  .pub-page:not(.is-phone-preview) .pub-concept-body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* クーポン：PC2列チケットグリッド */
  .pub-page:not(.is-phone-preview) .pub-coupon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .pub-page:not(.is-phone-preview) .pub-coupon-grid.is-single {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
  }

  .pub-page:not(.is-phone-preview) .pub-coupon-card .pub-coupon-inner {
    padding: 26px 28px;
  }

  /* お客様の声・スタッフ紹介：PC 2〜3列グリッド */
  .pub-page:not(.is-phone-preview) .pub-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .pub-page:not(.is-phone-preview) .pub-profile-grid.is-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .pub-page:not(.is-phone-preview) .pub-profile-grid.is-single {
    grid-template-columns: 1fr;
    max-width: 660px;
    margin: 0 auto;
  }

  .pub-page:not(.is-phone-preview) .pub-profile-card {
    padding: 24px;
  }

  .pub-page:not(.is-phone-preview) .pub-profile-photo {
    width: 82px;
    height: 82px;
  }

  /* スタッフ紹介（PC）：キューブ型3列ポートレートグリッド */
  .pub-page:not(.is-phone-preview) .pub-staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .pub-page:not(.is-phone-preview) .pub-staff-grid.is-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
    margin: 0 auto;
    gap: 30px;
  }

  .pub-page:not(.is-phone-preview) .pub-staff-grid.is-single {
    grid-template-columns: 1fr;
    max-width: 390px;
    margin: 0 auto;
  }

  .pub-page:not(.is-phone-preview) .pub-staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.22);
  }

  .pub-page:not(.is-phone-preview) .pub-staff-grid.shape-circle .pub-staff-media {
    width: 156px;
    height: 156px;
  }

  .pub-page:not(.is-phone-preview) .pub-staff-body {
    padding: 20px 22px 24px;
  }

  /* FAQ：ゆとりあるワイドタイポグラフィ */
  .pub-page:not(.is-phone-preview) .pub-faq-wrap {
    max-width: 880px;
    margin: 0 auto;
  }

  .pub-page:not(.is-phone-preview) .pub-faq-trigger {
    padding: 20px 4px;
    font-size: 0.97rem;
  }

  .pub-page:not(.is-phone-preview) .pub-faq-answer {
    padding-bottom: 22px;
    font-size: 0.88rem;
    line-height: 1.9;
  }

  /* フルワイドフッター＆PC時はスマホ固定バーを非表示 */
  .pub-page:not(.is-phone-preview) .pub-footer-band {
    padding: 56px 0 42px;
    background-color: var(--pub-surface-subtle);
  }

  .pub-page:not(.is-phone-preview) .pub-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 28px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--pub-border);
  }

  .pub-page:not(.is-phone-preview) .pub-viral-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .pub-page:not(.is-phone-preview) .pub-sticky-bar {
    display: none;
  }
}

/* エディタ内「公開ページビュー（PC幅）」プレビューでも同一のTCDリッチPC表示を再現 */
.pub-page.is-desktop-view .pub-mobile-nav {
  display: none;
}

.pub-page.is-desktop-view .pub-desktop-nav {
  display: block;
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  background-color: var(--pub-bar-bg);
  border-bottom: 1px solid var(--pub-border);
}

.pub-page.is-desktop-view .pub-desktop-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.pub-page.is-desktop-view .pub-desktop-nav-brand {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 300px;
}

.pub-page.is-desktop-view .pub-desktop-nav-name {
  font-weight: 600;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.pub-page.is-desktop-view .pub-desktop-nav-name.is-brand-sm { font-size: 0.875rem; }
.pub-page.is-desktop-view .pub-desktop-nav-name.is-brand-md { font-size: 0.78rem; }
.pub-page.is-desktop-view .pub-desktop-nav-name.is-brand-lg { font-size: 0.72rem; }

.pub-page.is-desktop-view .pub-desktop-nav-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}

.pub-page.is-desktop-view .pub-desktop-nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pub-text-sub);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 10em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-page.is-desktop-view .pub-desktop-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  max-width: 200px;
  border-radius: var(--pub-radius);
  background-color: var(--pub-accent);
  color: var(--pub-accent-text);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.pub-page.is-desktop-view .pub-hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--pub-border);
}

.pub-page.is-desktop-view .pub-hero.has-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pub-header-overlay);
  z-index: 0;
}

.pub-page.is-desktop-view .pub-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  padding: 56px 32px;
}

.pub-page.is-desktop-view .pub-hero .pub-header-bg {
  background-image: none !important;
  border: none;
  padding: 0;
}

.pub-page.is-desktop-view .pub-hero .pub-header-bg::before {
  display: none;
}

.pub-page.is-desktop-view .pub-hero-title {
  font-size: 2.25rem;
}

.pub-page.is-desktop-view .pub-hero-actions {
  max-width: 760px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.pub-page.is-desktop-view .pub-container {
  max-width: none;
  padding: 0;
}

.pub-page.is-desktop-view .pub-band {
  padding: 52px 0;
  border-bottom: 1px solid var(--pub-border);
  scroll-margin-top: 76px;
}

.pub-page.is-desktop-view .pub-band.is-alt {
  background-color: var(--pub-surface-subtle);
}

.pub-page.is-desktop-view .pub-band-inner {
  max-width: 1040px;
  padding: 0 32px;
}

.pub-page.is-desktop-view .pub-section-header {
  text-align: center;
  margin-bottom: 30px;
}

.pub-page.is-desktop-view .pub-section-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pub-text-sub);
  margin-bottom: 6px;
}

.pub-page.is-desktop-view .pub-section-title {
  justify-content: center;
  font-size: 1.4rem;
}

.pub-page.is-desktop-view .pub-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pub-page.is-desktop-view .pub-menu-item {
  padding: 16px 18px;
  border: 1px solid var(--pub-border);
  border-radius: 12px;
  background-color: var(--pub-surface);
}

.pub-page.is-desktop-view .pub-menu-thumb {
  width: 78px;
  height: 78px;
}

.pub-page.is-desktop-view .pub-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pub-page.is-desktop-view .pub-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pub-page.is-desktop-view .pub-gallery-grid.is-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pub-page.is-desktop-view .pub-concept-row.has-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pub-page.is-desktop-view .pub-concept-row.has-media:nth-child(even) .pub-concept-media {
  order: 2;
}

.pub-page.is-desktop-view .pub-coupon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pub-page.is-desktop-view .pub-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pub-page.is-desktop-view .pub-profile-grid.is-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pub-page.is-desktop-view .pub-staff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pub-page.is-desktop-view .pub-staff-grid.is-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin: 0 auto;
}

.pub-page.is-desktop-view .pub-staff-grid.is-single {
  grid-template-columns: 1fr;
  max-width: 360px;
  margin: 0 auto;
}

.pub-page.is-desktop-view .pub-notice-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
}

.pub-page.is-desktop-view .pub-sticky-bar {
  display: none;
}

.pub-heading {
  font-family: var(--pub-heading-font);
  color: var(--pub-text);
  letter-spacing: -0.02em;
}

.pub-section-title {
  font-family: var(--pub-heading-font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pub-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.pub-card {
  background-color: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  padding: 18px;
}

/* Theme A 特有の繊細な装飾（和モダンの余白と罫線感） */
.pub-page.theme-minimal .pub-card {
  background-color: rgba(255, 255, 255, 0.72);
}

.pub-page.theme-minimal .pub-section-divider {
  width: 28px;
  height: 1px;
  background-color: var(--pub-text-sub);
  opacity: 0.35;
  margin: 14px auto;
}

/* Theme B 特有のビジネス信頼ヘッダーバー */
.pub-corp-banner {
  background-color: var(--pub-accent);
  color: #FFFFFF;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 公開ページアクションボタン */
.pub-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--pub-radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.pub-action-btn:hover {
  opacity: 0.9;
}

.pub-action-btn:active {
  transform: scale(0.995);
}

.pub-action-btn.is-primary {
  background-color: var(--pub-accent);
  color: var(--pub-accent-text);
  border: 1px solid var(--pub-accent);
}

.pub-action-btn.is-secondary {
  background-color: var(--pub-surface);
  color: var(--pub-text);
  border: 1px solid var(--pub-border);
}

/* 公開ページ内FAQアコーディオン */
.pub-faq-item {
  border-bottom: 1px solid var(--pub-border);
}

.pub-faq-item:last-child {
  border-bottom: none;
}

.pub-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  background: transparent;
  border: none;
  color: var(--pub-text);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
}

.pub-faq-answer {
  display: none;
  padding-bottom: 14px;
  font-size: 0.8125rem;
  color: var(--pub-text-sub);
  line-height: 1.75;
}

.pub-faq-item.is-open .pub-faq-answer {
  display: block;
}

.pub-faq-item.is-open .pub-faq-chevron {
  transform: rotate(180deg);
}

.pub-faq-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--pub-text-sub);
}

/* 公開ページ最下部の控えめなPR・スポンサー枠（各テーマに調和） */
.pub-ad-slot {
  background-color: var(--pub-ad-bg);
  border: 1px solid var(--pub-ad-border);
  border-radius: var(--pub-radius);
  padding: 14px 16px;
}

.pub-ad-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--pub-border);
  color: var(--pub-text-sub);
}

/* 公開ページバイラルフッター */
.pub-viral-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--pub-border);
  text-align: center;
  font-size: 0.72rem;
  color: var(--pub-text-sub);
}

.pub-viral-link {
  color: var(--pub-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

/* 片手操作用の下部固定アクションバー */
.pub-sticky-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background-color: var(--pub-bar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--pub-border);
  padding: 10px 14px;
}

.pub-sticky-bar-inner {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pub-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pub-sticky-btn:hover {
  opacity: 0.88;
}

.pub-sticky-btn.is-call {
  background-color: var(--pub-accent);
  color: var(--pub-accent-text);
  border: 1px solid var(--pub-accent);
}

.pub-sticky-btn.is-map {
  background-color: var(--pub-surface);
  color: var(--pub-text);
  border: 1px solid var(--pub-border);
}

/* ==========================================================================
   ディレクトリ広告スロット（728x90 / レスポンシブ枠）
   ========================================================================== */

.dir-ad-banner {
  background-color: #FFFFFF;
  border: 1px dashed #D4D4D8;
  border-radius: 12px;
  padding: 16px 20px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ==========================================================================
   エディタのセクション・テーマ選択カード
   ========================================================================== */

.theme-option-card {
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  text-align: left;
  width: 100%;
}

.theme-option-card:hover {
  border-color: var(--border-strong);
}

.theme-option-card.is-selected {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--text-primary);
}

/* モーダルオーバーレイ（Tailwindユーティリティ競合を防止し確実に表示） */
.rk-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(24, 24, 27, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rk-modal-backdrop.is-open {
  display: flex;
}

/* トースト通知 */
.rk-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background-color: #18181B;
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rk-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* モバイル調整 */
@media (max-width: 767px) {
  .dir-ad-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
