/* =========================================================
   Base Typography
   - 英字: Cormorant Garamond
   - 日本語: SWELLデフォルトの明朝体
   ========================================================= */
html, body {
  font-family: 'Cormorant Garamond',
               YuMincho, "游明朝", "Hiragino Mincho ProN",
               "Hiragino Mincho Pro", "MS PMincho", serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 見出し（英字を強めに） */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond',
               YuMincho, "游明朝", "Hiragino Mincho ProN",
               "Hiragino Mincho Pro", "MS PMincho", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}


/* =========================================================
   段落内リンクの下線アニメーション（本文内のみ）
   ========================================================= */
#content p a {
  position: relative;
  text-decoration: none;
}

#content p a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #313131;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform .3s ease;
}

#content p a:hover {
  color: #313131;
}

#content p a:hover::after {
  transform: scale(1, 1);
  transform-origin: left;
}


/* =========================================================
   リッチカラム 全体
   ========================================================= */
.rich-columns-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  font-size: 14px;
  color: #333;
}

/* 上段２カラム（PC） */
.rich-top {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

/* 左カラム（ロゴ＋ボタン） */
.rich-left {
  width: 40%;
  text-align: center;
  padding: 40px 20px;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  box-sizing: border-box;
}

/* ロゴ画像固定 */
.rich-logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 30px;
  display: block;
}

/* RESERVATIONボタン */
.rich-btn {
  display: block;
  background: #19223c;
  color: #fff;
  padding: 12px 0;
  margin: 10px auto;
  width: 70%;
  max-width: 340px;
  border-radius: 0px;
  text-decoration: none;
  letter-spacing: 0.08em;
}

/* 右カラム（マップ） */
.rich-map {
  width: 60%;
  height: 300px;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  box-sizing: border-box;
  overflow: hidden;
}

/* マップをグレースケールに */
.rich-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  pointer-events: none; /* クリックさせたい場合はこの行を消す */
}

/* 下段４カラム（PC） */
.rich-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-left: 1px solid #e5e5e5;
}

.rich-box {
  padding: 25px 30px;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.rich-box h3 {
  font-size: 12px;
  letter-spacing: 0.15em;
  margin: 0 0 12px;
  color: #555;
}

.rich-box p {
  margin: 0;
  line-height: 1.8;
}

.rich-box p + p { margin-top: 0.4em; }

/* SHOP INFO ボタン */
.rich-link {
  display: block;
  background: #19223c;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  margin-top: 12px;
  text-decoration: none;
  border-radius: 0px;
}

/* スマホレイアウト（〜768px） */
@media (max-width: 768px) {
  .rich-top { flex-direction: column; }

  .rich-left,
  .rich-map {
    width: 100%;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
  }

  .rich-left { padding: 30px 20px; }

  .rich-btn {
    width: 90%;
    max-width: 100%;
  }

  .rich-bottom {
    grid-template-columns: 1fr;
    border-left: 1px solid #e5e5e5;
  }

  .rich-box { border-right: 1px solid #e5e5e5; }
}




/* DENROKU 0.9.6 — Calm, consistent type rhythm across the site.
   Horizontal tracking + vertical leading; no changes to font size/family. */
body {
  letter-spacing: .065em;
  line-height: 2;
}
:where(.post_content, .denroku-home-body, .denroku-menu-body, .denroku-footer) {
  letter-spacing: .065em;
  line-height: 2;
}
:where(.post_content, .denroku-home-body) :where(p, li, dt, dd) {
  line-height: 2;
}
:where(.post_content, .denroku-home-body) :where(h1, h2, h3, h4, h5, h6) {
  letter-spacing: .09em;
  line-height: 1.85;
}
.denroku-article .post_content .wp-block-columns {
  line-height: 1.95;
}
@media (max-width: 959px) {
  body, .post_content, .denroku-home-body { letter-spacing: .045em; }
}


/* DENROKU 0.9.35 — PC inner-page header and menu reservation logo parity.
   site.css loads after layout.css; apply the final PC-only image height here. */
@media (min-width: 960px) {
  body:not(.home) .denroku-header .denroku-logo img,
  .denroku-article--menu img.rich-logo,
  .denroku-article--menu .rich-logo img {
    display: inline-block;
    width: auto !important;
    height: 32px !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain;
  }
}


/* ============================================================
   DENROKU 0.9.36 — Shared horizontal logo *rendered* dimensions
   Applies to the same recreated logo asset wherever it appears:
   headers, homepage MV/body, and inner-page reservation sections.
   Prior inline width, WP image rules and older area-specific rules
   must not change its visual dimensions. The brush loading logo
   uses another asset and remains unaffected.
============================================================ */
@media (min-width: 960px) {
  body img[src*="/assets/logo-horizontal-dark.png"],
  body img[src*="/assets/logo-horizontal-white.png"] {
    box-sizing: border-box !important;
    display: inline-block;
    width: auto !important;
    height: 32px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: 1619 / 233 !important;
    object-fit: contain;
    transform: none;
  }
}
@media (max-width: 959px) {
  body img[src*="/assets/logo-horizontal-dark.png"],
  body img[src*="/assets/logo-horizontal-white.png"] {
    box-sizing: border-box !important;
    display: inline-block;
    width: auto !important;
    height: 27.2px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: 1619 / 233 !important;
    object-fit: contain;
    transform: none;
  }
}

/* DENROKU 0.9.38 — PC menu-page HEADER logo only.
   Other horizontal logos remain 32px; SP remains 27.2px. */
@media (min-width: 960px) {
  body .denroku-header--menu-page .denroku-logo img[src*="logo-horizontal-"] {
    height: 27px !important;
    width: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain;
  }
}


/* ============================================================
   DENROKU 0.9.39 — Homepage blog part 945 logo size parity
   The original SWELL image block has a more specific legacy rule
   in layout.css; target only this logo inside the MV blog part.
   Leave the image wrapper, other logos and loading mark untouched.
============================================================ */
@media (min-width: 960px) {
  body.home .denroku-home .mv-split__content .denroku-part[data-partsid="945"] .wp-block-image img[src*="logo-horizontal-dark.png"] {
    width: auto !important;
    height: 32px !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain;
  }
}
@media (max-width: 959px) {
  body.home .denroku-home .mv-split__content .denroku-part[data-partsid="945"] .wp-block-image img[src*="logo-horizontal-dark.png"] {
    width: auto !important;
    height: 27.2px !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain;
  }
}


/* DENROKU 0.9.41 — Audit P2: correct only the two PC logo exceptions.
   The shared 32px horizontal-logo rule and SP 27.2px rule remain intact. */
@media (min-width: 960px) {
  body .denroku-header--menu-page .denroku-logo img[src*="logo-horizontal-"] {
    height: 32px !important;
  }
  body.home .denroku-home-body img[src*="logo-horizontal-"] {
    height: 32px !important;
  }
}

/* DENROKU 0.9.41 — Audit P2: narrow-screen reading-size floor.
   Keep layout, fonts, tracking, headings and larger viewports unchanged. */
@media (max-width: 390px) {
  .denroku-home .mv-split__content p.has-small-font-size {
    font-size: 14px !important;
  }
}
@media (max-width: 360px) {
  .denroku-article--menu .post_content {
    font-size: 14px;
  }
  .denroku-article--menu .post_content .has-small-font-size {
    font-size: 14px !important;
  }
}

/* DENROKU 0.9.43 — SP homepage: add 16px breathing room under the
   horizontal logo in blog part 945; leave all other spacing unchanged. */
@media (max-width: 959px) {
  body.home .denroku-home .mv-split__content .denroku-part[data-partsid="945"] .wp-block-image {
    margin-block-end: calc(1em + 16px);
  }
}

/* DENROKU 0.9.44 — PC homepage: match the 16px breathing room added
   below the blog-part 945 logo on SP. No changes to other spacing. */
@media (min-width: 960px) {
  body.home .denroku-home .mv-split__content .denroku-part[data-partsid="945"] .wp-block-image {
    margin-block-end: calc(1em + 16px);
  }
}

/* DENROKU — mobile food-menu introduction: natural Japanese phrase wrapping.
   Undo the previous balanced wrapping, which divided words unnaturally.
   Preserve existing font, alignment, line height and spacing. */
@media (max-width: 959px) {
  .denroku-article--menu .post_content > p.has-text-align-center:first-of-type,
  .denroku-article--menu .post_content > .wp-block-group:first-of-type p.has-text-align-center:first-of-type {
    text-wrap: pretty;
    line-break: strict;
  }
  .denroku-article--menu .denroku-food-intro-phrase {
    white-space: nowrap;
  }
}
