/* Shared presentation components for the local review: text cards and phrase wrapping. */
:root {
  --review-text: #202c40;
  --review-muted: #535b63;
  --review-card-gap: 20px;
}

body {
  line-break: strict;
  word-break: auto-phrase;
}

.review-phrase {
  display: inline-block;
  text-indent: 0;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: keep-all;
}

:is(h1, h2, h3, h4) .ph:has(.review-phrase) {
  display: contents;
}

[data-label]::before {
  word-break: keep-all;
  overflow-wrap: normal;
}

body :is(h1, h2, h3, h4)[data-label]::before {
  word-break: keep-all;
  overflow-wrap: normal;
}

body .site-header {
  padding-top: 14px;
  height: 88px;
}

.review-abbreviation {
  position: absolute;
  top: 3px;
  right: var(--gutter, 24px);
  font-size: 11px;
  line-height: 1.5;
  color: var(--review-muted);
  white-space: nowrap;
}

.site-header .brand::before {
  word-break: normal;
}

body .nav-panel.f17-mega {
  gap: 12px;
}

body .f17-mega a {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: 88px;
  padding: 16px;
  background: #f5f2eb;
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
}

body .f17-mega a::before,
body .f17-mega .f17-menu-description {
  grid-column: 1;
  padding: 0;
}

body .f17-mega .f17-menu-description {
  margin-top: 5px;
  font-size: 12px;
}

body .f17-mega .f19-textface {
  display: none;
}

body .service-grid {
  gap: var(--review-card-gap);
}

body[data-page="index"] .service-card {
  padding: 54px 26px 30px !important;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.95;
}

body[data-page="index"] .service-card h3 {
  margin: 0 0 18px;
  font-size: 21px;
}

.service-card br {
  display: none;
}

body[data-page="index"] .intro-copy {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 2;
}

body #hpb-nav li > a {
  height: 100%;
  min-height: 108px;
  padding: 22px;
  justify-content: center;
  color: var(--review-text);
  font-size: 16px;
}

body #banner a {
  height: 100%;
  min-height: 108px;
  padding: 22px;
  color: var(--review-text);
  font-size: 16px;
}

body #banner ul,
body #hpb-nav ul {
  gap: 16px;
}

body #banner li:has(> a[href="zakki.html"]),
body #banner a[href="zakki.html"] {
  display: block;
}

body :is(#banner, #hpb-nav) .en {
  font-size: 12px;
  color: var(--review-muted);
  word-break: normal;
}

body .f19-legacy :is(#hpb-nav, #banner) {
  padding: 24px;
}

body .f19-sitemap a {
  min-height: 44px;
  font-size: 14px;
}

body .f19-legacy > summary {
  padding: 20px 0;
  font-size: 14px;
}

body .kana-nav,
body .chapter-index,
body .f15-toc {
  display: none;
}

/* Reflow prose without changing meaningful cell, address, or list breaks. */
body .review-flow .review-soft-break {
  display: none;
}

body .review-flow :is(td, th) br {
  display: revert;
}

body .review-flow .k-hang {
  display: block;
  max-width: 100%;
  margin: 10px 0;
}

body .review-flow :is(b, font, span) {
  text-align: start;
}

body .k-article-body,
body .noren-blocks,
body .noren-news-rows a,
body #toppage-news dd a {
  word-break: auto-phrase;
  overflow-wrap: normal;
}

body .k-article-title {
  font-size: clamp(23px, 2.3vw, 30px);
}

body .subpage,
body .membership-card {
  color: var(--review-text);
}

body .k-access {
  font-size: 16px;
}

body .table-scroll {
  scrollbar-width: auto;
}

@media (max-width: 760px) {
  body .site-header {
    height: 82px;
    padding: 16px 16px 0;
    gap: 8px;
  }

  .review-abbreviation {
    right: 16px;
    font-size: 10px;
  }

  body #site-menu {
    top: 82px;
    height: calc(100dvh - 82px);
    padding: 16px 20px 100px;
  }

  body .f17-mega a {
    margin-bottom: 10px;
    min-height: 64px;
  }

  body .f17-mega .f17-menu-description {
    grid-row: 2;
  }

  body :is(#hpb-nav, #banner) ul,
  body .f19-legacy #hpb-nav ul {
    grid-template-columns: 1fr;
  }

  body .f19-legacy :is(#hpb-nav, #banner) {
    padding: 18px;
  }

  body #hpb-nav li > a,
  body #banner a {
    min-height: 90px;
    padding: 18px;
  }

  body .subpage #hpb-main {
    font-size: 16px;
  }

  body .f19-next-links a,
  body .f19-sitemap a {
    font-size: 15px;
  }

  body .f19-sitemap ul {
    grid-template-columns: 1fr;
  }

  body .section-title {
    font-size: 27px;
    letter-spacing: 0.02em;
  }

  body .subpage .pagehead h2 {
    font-size: 26px;
  }

  body .subpage #hpb-main p.large {
    padding: 20px;
    font-size: 18px;
  }

  body .review-flow .k-hang {
    padding-left: 0;
    text-indent: 0;
  }

  body .mobile-cta a {
    min-height: 48px;
    font-size: 13px;
  }
}

@media print {
  .review-abbreviation {
    display: none;
  }
}

/* Restored source photographs remain in the article, at their natural ratio. */
.review-source-article img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.review-source-article :is(p, div, span) {
  max-width: 100%;
}

.review-transit-title,
.review-transit-line {
  display: block;
}

/* Footer links share the footer's light foreground and a usable target size. */
#hpb-footerMain a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 14px;
  text-underline-offset: 4px;
}

/* 1130 Claude: 右上の略称は下の帯(ロゴ行)に同じ表記があるため重複表示しない */
.review-abbreviation{display:none!important}
