/* =========================================================
   Kaji Wine Bar ヘッダー・フッター＋コンテンツ用CSS
   inc/winebar-header-footer/assets/ に置く
   （ワインバー使用ページでのみ自動で読み込まれます）
   ========================================================= */

/* ---------- 既存ヘッダー・フッターの無効化 ---------- */

body.kwb-header-on #rize-original-header,
body.kwb-header-on .ohf-header,
body.kwb-header-on #block-site-header,
body.kwb-header-on .block-site-header,
body.kwb-header-on .site-header,
body.kwb-header-on #site-header,
body.kwb-header-on .vk-mobile-nav-menu-btn,
body.kwb-header-on .vk-mobile-nav,
body.kwb-header-on .vk-menu-acc-btn {
  display: none !important;
}

body.kwb-footer-on #rize-original-footer,
body.kwb-footer-on .ohf-footer,
body.kwb-footer-on .site-footer,
body.kwb-footer-on #site-footer,
body.kwb-footer-on .siteFooter {
  display: none !important;
}

body.kwb-mode {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: #101010;
}

/* ワインバーLP以外のページでは、固定ヘッダーの分だけ本文を下げる（ワインバーデザイン時のみ） */
body.kwb-h-winebar:not(:has(.kwb-page)) {
  padding-top: 96px !important;
}

body.kwb-mode .site-body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.kwb-mode .site-body .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.kwb-mode .page-header,
body.kwb-mode .entry-header,
body.kwb-mode .breadcrumb {
  display: none !important;
}

/* ---------- ワインバー ヘッダー ---------- */

.kwbhf-header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 230px 1fr 116px;
  gap: 28px;
  align-items: center;
  width: 100%;
  /* 背景は画面幅いっぱい、中身は中央1055pxに収める */
  padding: 18px max(44px, calc((100% - 1055px) / 2 + 44px));
  background: rgba(12, 10, 8, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #f7f5ef;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Times New Roman", serif;
}

/* WordPress管理バー表示中は、その分だけ下げる */
body.admin-bar .kwbhf-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .kwbhf-header {
    top: 46px;
  }
}

.kwbhf-header a {
  color: inherit;
  text-decoration: none;
}

.kwbhf-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
}

.kwbhf-brand span {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 28px;
  font-weight: 400;
  line-height: 0.9;
  transform: rotate(-4deg);
}

.kwbhf-brand small {
  align-self: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: 0.32em;
}

.kwbhf-nav-list {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.kwbhf-nav-list a {
  display: inline-block;
  padding-bottom: 7px;
}

.kwbhf-nav-list .current-menu-item a,
.kwbhf-nav-list .current_page_item a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.kwbhf-reserve {
  display: grid;
  place-items: center;
  height: 37px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.kwbhf-hamburger {
  display: none; /* PCでは非表示（モバイルのみ） */
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.kwbhf-hamburger span {
  display: block;
  width: 30px;
  height: 1px;
  background: #f7f5ef;
}

/* ドロワー（ハンバーガーで開くメニュー） */

.kwbhf-drawer {
  display: none;
}

body.kwbhf-open .kwbhf-drawer {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: min(300px, 80vw);
  height: 100vh;
  padding: 90px 36px 36px;
  background: rgba(10, 9, 8, 0.97);
}

.kwbhf-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

body.kwbhf-open .kwbhf-hamburger {
  position: relative;
  z-index: 21;
}

.kwbhf-reserve--drawer {
  width: 140px;
}

/* ---------- ワインバー フッター ---------- */

.kwbhf-footer {
  display: grid;
  grid-template-columns: 180px 1fr 160px;
  gap: 64px;
  align-items: start;
  width: 100%;
  /* 背景は画面幅いっぱい、中身は中央1055pxに収める */
  padding: 28px max(84px, calc((100% - 1055px) / 2 + 84px)) 29px;
  background: #111111;
  color: #f7f5ef;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Times New Roman", serif;
  font-size: 12px;
}

.kwbhf-footer a {
  color: inherit;
  text-decoration: none;
}

/* はみ出し防止（各カラムが隣に重ならないように） */
.kwbhf-footer > * {
  min-width: 0;
}

.kwbhf-brand--footer span {
  font-size: 24px;
}

.kwbhf-address p {
  margin: 0 0 9px;
  font-size: 11px;
}

.kwbhf-social p {
  margin: 0 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.kwbhf-social div {
  display: flex;
  gap: 22px;
  align-items: center;
}

.kwbhf-social a {
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
}

/* ---------- ヘッダー・フッターのレスポンシブ ---------- */

@media (max-width: 900px) {
  .kwbhf-header {
    grid-template-columns: 1fr auto;
    padding: 24px;
  }

  .kwbhf-nav,
  .kwbhf-reserve {
    display: none;
  }

  .kwbhf-hamburger {
    display: flex;
  }

  body.kwbhf-open .kwbhf-drawer .kwbhf-reserve--drawer {
    display: grid;
  }

  .kwbhf-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-inline: 28px;
  }
}

@media (max-width: 560px) {
  .kwbhf-brand span {
    font-size: 24px;
  }
}

/* =========================================================
   ここから下はページコンテンツ（kwb-）用
   ========================================================= */

.kwb-page {
  --kwb-black: #101010;
  --kwb-black-soft: #171716;
  --kwb-white: #f7f5ef;
  --kwb-paper: #f4f1eb;
  --kwb-line: rgba(255, 255, 255, 0.62);
  --kwb-dark-line: rgba(25, 25, 25, 0.42);
  max-width: 1055px;
  margin-inline: auto;
  background: var(--kwb-black);
  color: var(--kwb-white);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Times New Roman", serif;
  font-size: 12px;
}

.kwb-page a {
  color: inherit;
  text-decoration: none;
}

.kwb-page .wp-block-columns {
  gap: 0;
  margin-bottom: 0;
}

/* ---------- 共通パーツ ---------- */

.kwb-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.kwb-eyebrow::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.kwb-page .kwb-h2 {
  margin: 0 0 27px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.kwb-text {
  margin: 0 0 25px;
  font-size: 11px;
  line-height: 2.05;
}

/* 枠線ボタン（線＋矢印） */
.kwb-btn {
  margin: 0;
}

.kwb-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 180px;
  height: 43px;
  padding-inline: 31px;
  border: 1px solid var(--kwb-line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.kwb-btn a::after,
.kwb-web-reserve a::after {
  content: "";
  width: 17px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(0 44%, 11px 44%, 11px 0, 17px 50%, 11px 100%, 11px 56%, 0 56%);
}

.kwb-btn--light a {
  width: 207px;
  border-color: var(--kwb-dark-line);
  color: #202020;
}

/* 画像をカラムいっぱいに敷く */
.kwb-fill-img,
.kwb-fill-img img {
  height: 100%;
}

.kwb-fill-img {
  margin: 0;
}

.kwb-fill-img img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Hero ---------- */

.kwb-hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: #0b0907;
}

.kwb-hero-bg {
  position: absolute;
  inset: 0;
  margin: 0;
}

.kwb-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kwb-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.82) 22%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.18) 100%);
}

.kwb-hero-copy {
  position: relative;
  z-index: 1;
  width: min(888px, calc(100% - 88px));
  margin-inline: auto;
  padding-top: 147px;
}

.kwb-page .kwb-h1 {
  margin: 0 0 31px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.14em;
}

.kwb-lead {
  margin: 0 0 35px;
  font-size: 12px;
  font-weight: 600;
  line-height: 2.1;
  letter-spacing: 0.08em;
}

.kwb-scroll {
  position: absolute;
  left: 31px;
  bottom: 36px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.kwb-scroll::before {
  content: "";
  display: block;
  width: 1px;
  height: 33px;
  background: var(--kwb-line);
}

/* ---------- About ---------- */

.kwb-about {
  min-height: 333px;
}

.kwb-about-copy {
  background: var(--kwb-paper);
  color: #202020;
  padding: 39px 48px 34px 83px;
}

.kwb-about-img {
  display: flex;
}

/* ---------- Menu ---------- */

.kwb-menu {
  background:
    radial-gradient(circle at 16% 30%, rgba(255, 255, 255, 0.04), transparent 28%),
    var(--kwb-black-soft);
  padding: 43px 52px 39px 83px;
}

.kwb-page .kwb-menu {
  gap: 36px;
}

.kwb-menu-cards {
  align-self: flex-end;
}

.kwb-page .kwb-cards {
  gap: 13px;
}

.kwb-card-img {
  margin: 0;
}

.kwb-card-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.kwb-page .kwb-card-title {
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.kwb-card-label {
  margin: 0;
  font-size: 9px;
}

/* ---------- Wine / Reserve ---------- */

.kwb-wine {
  background: #121211;
}

.kwb-wine-panel {
  padding: 39px 52px 35px 83px;
}

.kwb-wine-img {
  display: flex;
  min-height: 199px;
}

.kwb-reserve {
  background: var(--kwb-paper);
  color: #202020;
  padding: 39px 58px;
}

.kwb-page .kwb-glass-icon {
  width: 18px;
  height: 42px !important;
  margin: 0 0 13px;
  border: 1px solid #57534e;
  border-top-width: 2px;
  border-radius: 7px 7px 12px 12px;
}

.kwb-web-reserve {
  margin: 0 0 15px;
}

.kwb-web-reserve a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 140px;
  height: 27px;
  padding-inline: 18px;
  background: #111111;
  color: var(--kwb-white);
  font-size: 10px;
}

.kwb-tel {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.kwb-tel strong {
  font-size: 18px;
  font-weight: 400;
}

.kwb-note {
  margin: 0;
  font-size: 10px;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 781px) {
  .kwb-hero {
    min-height: 620px;
  }

  .kwb-hero-bg::after {
    background: rgba(0, 0, 0, 0.55);
  }

  .kwb-hero-copy {
    width: calc(100% - 48px);
    padding-top: 150px;
  }

  .kwb-page .kwb-h1 {
    font-size: 28px;
  }

  .kwb-about-copy,
  .kwb-menu,
  .kwb-wine-panel,
  .kwb-reserve {
    padding-inline: 28px;
  }

  .kwb-lead,
  .kwb-text {
    font-size: 10px;
  }

  /* 料理カードはスマホで2列 */
  .kwb-page .kwb-cards {
    flex-wrap: wrap;
  }

  .kwb-page .kwb-cards .wp-block-column {
    flex-basis: calc(50% - 7px) !important;
  }
}

@media (max-width: 560px) {
  .kwb-page .kwb-h2 {
    font-size: 22px;
  }
}
