/* =============================================================
   PC — Blog / Topics / Customer content pages (batch C)
   Clone of cloudestate-tokyo.jp content templates.
   New stylesheet; no vendor CSS reused (see HP-CLONE-DESIGN.md §3).
   Depends on tokens.css / base.css / pc.css (shared primitives).
   ============================================================= */

/* ---------- content-page shell ---------- */
.l-main.l-page { padding-bottom: 80px; min-height: 410px; }
/* base.css .ph is an inline span; make it fill its (sized) wrapper */
.ph { display: block; }
.l-page .l-blog,
.l-page .l-voice,
.l-page .l-intro-detail,
.l-page .main_topics,
.l-page .page__header,
.l-page .breadcrumbs { width: var(--screen-size); margin-inline: auto; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { margin-top: 16px; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--light-text-color); }
.breadcrumbs__items { display: flex; align-items: center; }
.breadcrumbs__link { color: var(--light-text-color); font-weight: normal; }
.breadcrumbs__items svg,
.breadcrumbs__list > span svg { width: 11px; height: 11px; margin: 0 9px; fill: var(--gray-text); flex: none; }
.breadcrumbs strong.breadcrumbs__link { color: var(--dark-color); font-weight: bold; }

/* ---------- page heading ---------- */
.page__header { margin-top: 12px; }
.page__headline { font-size: 26px; font-weight: bold; color: var(--dark-color); line-height: 1.4; }
.ui-title--center.is-small { font-size: 20px; }
.ui-title--left { font-size: 22px; font-weight: bold; color: var(--dark-color); margin: 0 0 24px; }

/* =============================================================
   BLOG list  (/blog/)
   ============================================================= */
.l-blog { padding-bottom: 20px; }

/* featured slider (blog-mv) — centre-mode strip with peeking neighbours + dots */
.blog-mv-wrap { overflow: hidden; padding: 48px 0 20px; margin-bottom: 0; }
.blog-mv-wrap .ui-narrow-section { width: auto; margin: 0; padding: 0; }
.blog-mv { display: flex; gap: 30px; transform: translateX(calc(50vw - 984px)); will-change: transform; }
.blog-mv [role="listitem"] { flex: 0 0 636px; width: 636px; }
.blog-mv__items { display: block; }
.blog-mv__card { position: relative; height: 388px; border-radius: 8px; }
.blog-mv__card img { width: 100%; height: 100%; object-fit: contain; }
.blog-mv__bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 26px 22px; }
.blog-mv__title { display: flex; flex-direction: column; gap: 8px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.blog-mv__title > span:first-child { font-size: 26px; font-weight: bold; line-height: 1.3; }
.blog-mv__date time { font-size: 13px; font-weight: normal; }
.blog-mv__card .blog-mv__bottom::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 130px; z-index: -1;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.34), rgba(0,0,0,0));
}
.blog-mv__card { overflow: hidden; }

/* slick-style dot pager */
.blog-mv-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.blog-mv-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-color); }
.blog-mv-dots span.is-active { background: var(--dark-border-color); }

/* おすすめ記事 grid */
.l-blog > section { padding: 20px 0 0; }
.blog__ttl { margin: 0 0 40px; }
.blog-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 30px;
  margin: 0 0 46px;
}
.blog-list__items { display: flex; flex-direction: column; }
.blog-list__img { display: block; height: 232px; margin: 0 0 14px; }
.blog-list__img img { width: 100%; height: 100%; object-fit: contain; }
.blog-list__title { font-size: 16px; font-weight: bold; color: var(--dark-color); margin: 0 0 5px; line-height: 1.4; }
.blog-list__update time,
.blog-list__items time { font-size: 13px; color: var(--light-text-color); }
.l-blog .ui-section-btn { margin-top: 8px; }

/* =============================================================
   BLOG entry  (/blog/entry-*/)
   ============================================================= */
.l-blog .ui-narrow-section.blog-article-wrap,
.l-page article.ui-narrow-section { padding-block: 26px 38px; }
.blog__header { margin: 0 0 6px; }
.blog__photo { margin: 0 0 24px; border-radius: 8px; overflow: hidden; }
.blog__photo img { width: 100%; display: block; }
.blog__headline { font-size: 26px; font-weight: bold; color: var(--dark-color); line-height: 1.45; margin: 0 0 8px; }
.blog__info { margin: 0; }
.blog__info time, .ui-time-text { font-size: 13px; color: var(--gray-text); font-family: Arial, var(--font-sans); }
.blog__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
.blog__tags a { font-size: 14px; color: var(--light-text-color); }
.blog__article {
  margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--dark-color);
}
.blog__article div { min-height: 0; }
/* CMS blank-line divs (<div><br></div>) — render as a compact gap, not a full line */
.blog__article > div:has(> br:only-child) { height: 9px; line-height: 9px; }
.blog__article img { max-width: 100%; }
.blog__article .blog__body-img {
  display: inline-block; width: 274px; height: 184px; margin: 4px 0;
  background-color: var(--bg-light-gray); overflow: hidden;
}
.blog__article .blog__body-img img { width: 100%; height: 100%; object-fit: cover; }
.blog__article .blog__body-img--center { display: block; margin: 10px auto; }

/* next-article card */
.next-article { margin: 30px 0 0; text-align: center; }
.next-article__ttl { font-size: 20px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 20px; }
.next-article { margin: 26px 0 0; }
.next-article__card {
  display: flex; align-items: center; gap: 24px; max-width: 600px; margin: 0 auto;
  border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; text-align: left;
}
.next-article__img { width: 168px; height: 112px; flex: none; margin: 0; }
.next-article__img img { width: 100%; height: 100%; object-fit: contain; }
.next-article__right { flex: 1; }
.next-article__text { font-size: 16px; font-weight: bold; color: var(--dark-color); margin: 0 0 6px; }
.next-article__right time { font-size: 13px; color: var(--gray-text); }

/* =============================================================
   BLOG taglist  (/blog/taglist/ , /blog/taglist/{id}/)
   ============================================================= */
.l-page.blog .ui-section { padding: 46px 0 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 12px; }
.tag_link {
  display: inline-flex; align-items: center; border: 1px solid var(--border-color);
  border-radius: 6px; background-color: #fff; padding: 8px 14px; font-size: 14px;
  color: var(--dark-color);
}
.md-category { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.md-category__items {
  display: inline-flex; align-items: center; border: 1px solid var(--border-color);
  border-radius: 6px; background-color: #fff; padding: 8px 14px; font-size: 14px; color: var(--dark-color);
}
.l-page.blog section { padding: 40px 0 20px; text-align: center; }
.l-page.blog section .ui-title--center.is-small { margin-bottom: 20px; }

/* =============================================================
   TOPICS  (/topics/)  — bordered history box + pager
   ============================================================= */
.main_topics {
  background-color: #fff; border: 1px solid var(--border-color); border-radius: 6px;
  margin-top: 30px; padding: 34px 44px 38px;
}
.main_topics .main_table { width: 100%; }
.main_topics .tr { display: flex; align-items: flex-start; border-bottom: 1px dashed #DCDCDC; }
.main_topics .tr:last-child { border-bottom: 0; }
.main_topics .th { width: 130px; min-width: 130px; padding: 44px 10px 44px 0; font-weight: normal; font-size: 13px; color: var(--dark-color); font-family: Arial, var(--font-sans); }
.main_topics .td_category { display: none; }
.main_topics .td { flex: 1; padding: 44px 0; }
.main_topics .td .history_title { font-size: 20px; font-weight: bold; margin: 0 0 16px; line-height: 1.5; color: var(--dark-color); }
.main_topics .td .topics-body { font-size: 14px; line-height: 2.05; color: var(--dark-color); }
.main_topics .td .topics-body .sp2 { display: block; height: 1.5em; }

/* pager (shared: topics + customer) */
.pager { display: flex; justify-content: center; }
.pager_count { text-align: center; font-size: 14px; color: var(--dark-color); margin-bottom: 8px; }
.pager_count span { color: var(--dark-color); }
.md-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 24px; }
.main_topics .pager:first-child .md-pager { margin: 0 0 22px; }
.md-pager__list { display: flex; gap: 8px; }
.md-pager__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 6px; border-radius: 50%;
  font-size: 14px; color: var(--light-text-color);
}
.md-pager__list li > span.md-pager__link { background-color: var(--sub-light-color); color: var(--dark-color); }
.md-pager > a.md-pager__link svg { width: 14px; height: 14px; fill: var(--light-text-color); }

/* =============================================================
   CUSTOMER list  (/customer/)
   ============================================================= */
.l-voice { padding-bottom: 10px; }
.l-voice .page__headline { margin: 12px 0 0; }
.l-voice > div > .pager { margin: 24px 0; }
.voice__list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 24px; }
.voice__items { display: flex; }
.intro__card {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  background-color: #fff; border: 1px solid var(--border-color); border-radius: 6px;
  box-shadow: var(--box-shadow); padding: 18px 20px; min-height: 176px; color: var(--dark-color);
}
.voice__info { display: flex; gap: 20px; align-items: flex-start; }
.voice__img { width: 78px; height: 78px; min-width: 78px; }
.voice__img .ph, .voice__img img { width: 100%; height: 100%; object-fit: cover; }
.md-pasonal { flex: 1; min-width: 0; padding-top: 2px; }
.md-pasonal__name { font-size: 20px; font-weight: bold; color: var(--dark-color); margin: 0 0 7px; }
.voice__omit-comment { font-size: 14px; line-height: 1.7; color: var(--dark-color); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.md-pasonal__staff { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; }
.md-pasonal__staff-img { width: 40px; height: 40px; min-width: 40px; border-radius: 4px; overflow: hidden; background-color: var(--bg-light-gray); }
.md-pasonal__staff-img .ph, .md-pasonal__staff-img img { width: 100%; height: 100%; object-fit: cover; }
.md-pasonal__staff > p { font-size: 13px; color: var(--dark-color); }

/* =============================================================
   CUSTOMER detail  (/customer/{id}/)
   ============================================================= */
.l-main.intro.ui-bg-white,
.l-page.ui-bg-white { background-color: #fff; }
.l-intro-detail {
  width: var(--screen-size); margin: 40px auto 0;
  display: grid; grid-template-columns: 420px 1fr; grid-template-rows: auto auto;
  column-gap: 50px; row-gap: 0;
}
.l-intro-detail__header { grid-column: 1 / -1; margin: 0 0 30px; }
.l-intro-detail__left { grid-column: 1; }
.l-intro-detail__right { grid-column: 2; }
.md-photo__list { display: block; }
.intro__photo-img--main { display: block; height: 224px; background-color: var(--bg-light-gray); overflow: hidden; }
.intro__photo-img--main .ph, .intro__photo-img--main img { width: 100%; height: 100%; object-fit: contain; }
.staff__pasonal { margin: 0; }
.staff__pasonal .md-pasonal__name { font-size: 24px; font-weight: bold; margin: 0 0 4px; }
.md-pasonal__lower { font-size: 14px; color: var(--dark-color); }
.intro__comment { margin: 18px 0 0; font-size: 15px; line-height: 1.9; color: var(--dark-color); }
.l-page .intro__section { margin: 0; }

/* other-voices row (md-comment) */
.l-main.intro > section, .l-page.intro > section { width: var(--screen-size); margin: 56px auto 0; padding-bottom: 20px; }
.md-comment { display: flex; gap: 30px; margin: 24px 0 34px; }
.md-comment__items { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.md-comment__img { width: 62px; height: 62px; min-width: 62px; background-color: var(--bg-light-gray); }
.md-comment__img .ph, .md-comment__img img { width: 100%; height: 100%; object-fit: cover; }
.md-comment__balloon { flex: 1; min-width: 0; background-color: var(--bg-light-gray); border-radius: 8px; padding: 14px 16px; }
.md-comment__text { font-size: 13px; line-height: 1.6; color: var(--dark-color); }
.md-comment__text.is-ellipsis {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.l-page.intro > section .ui-section-btn { margin: 0 auto; }

/* =============================================================
   floating "来店予約" side tab (visible on content pages)
   ============================================================= */
.reservation-side-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: fixed; right: 0; top: 168px; z-index: 15;
  width: 46px; padding: 14px 0 16px;
  background-color: var(--sub-color); color: var(--sub-font-color);
  border-radius: 8px 0 0 8px; box-shadow: var(--box-shadow);
}
.reservation-side-link .icon { width: 20px; height: 20px; color: var(--sub-font-color); }
.reservation-side-link-text {
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: 15px; font-weight: bold; letter-spacing: 3px; line-height: 1;
}
