@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* BORISYNC LIVING media layout. Every rule is limited to the opt-in body class. */
body.bs-living {
  --bs-ink: #141614;
  --bs-muted: #646861;
  --bs-line: #d7dbd5;
  --bs-key: #194d40;
  --bs-paper: #ffffff;
  --bs-soft: #f4f6f2;
  --bs-width: 1280px;
  --bs-gutter: 48px;
  margin: 0;
  background: var(--bs-paper);
  color: var(--bs-ink);
  font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

body.bs-living *,
body.bs-living *::before,
body.bs-living *::after { box-sizing: border-box; }

body.bs-living :where(a, button, input, summary, select, textarea):focus-visible {
  outline: 3px solid var(--bs-key);
  outline-offset: 4px;
}

body.bs-living #content {
  width: 100%;
  max-width: var(--bs-width);
  margin: 0 auto;
  padding: 0;
  background: var(--bs-paper);
}

body.bs-living #content-in {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.bs-living #main {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px var(--bs-gutter) 72px;
  border: 0;
  border-radius: 0;
  background: var(--bs-paper);
  min-width: 0;
}

body.bs-living.bs-homepage #main,
body.bs-living.bs-moving-guide #main { padding: 0; }

body.bs-living :where(.bs-header, .bs-home, .bs-hub, .bs-partner, .bs-footer-bottom, .bs-article-related) a {
  color: inherit;
  text-decoration: none;
}

body.bs-living :where(.bs-home, .bs-hub, .bs-partner, .bs-footer-bottom, .bs-article-related) :where(h1, h2, h3, p, figure) {
  margin: 0;
}

body.bs-living :where(.bs-home, .bs-hub, .bs-article-related) :where(h1, h2, h3) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bs-ink);
  font-weight: 800;
}

body.bs-living :where(.bs-home, .bs-hub, .bs-article-related) :where(h2, h3)::after { content: none; }

body.bs-living .bs-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--bs-ink);
  background: var(--bs-paper);
}

body.bs-living .bs-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--bs-width);
  min-height: 88px;
  margin: 0 auto;
  padding: 12px var(--bs-gutter);
}

body.bs-living .bs-brand {
  display: block;
  flex: 0 1 auto;
  margin-right: auto;
  line-height: 1.15;
  white-space: nowrap;
}

body.bs-living .bs-brand strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.15px;
}

body.bs-living .bs-brand small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}

body.bs-living .bs-desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

body.bs-living .bs-desktop-nav a,
body.bs-living .bs-footer-bottom nav a { padding: 10px 0; }

body.bs-living :where(.bs-desktop-nav, .bs-footer-bottom nav) a:hover,
body.bs-living .bs-text-link:hover {
  color: var(--bs-key);
  text-decoration: underline;
  text-underline-offset: 5px;
}

body.bs-living .bs-search,
body.bs-living .bs-mobile-nav { position: relative; flex: 0 0 auto; }

body.bs-living .bs-search { padding-left: 20px; border-left: 1px solid var(--bs-line); }
body.bs-living .bs-mobile-nav { display: none; }

body.bs-living :where(.bs-search, .bs-mobile-nav) > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: var(--bs-ink);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

body.bs-living :where(.bs-search, .bs-mobile-nav) > summary::-webkit-details-marker { display: none; }
body.bs-living :where(.bs-search, .bs-mobile-nav) > summary::marker { content: ""; }
body.bs-living :where(.bs-search, .bs-mobile-nav)[open] > summary { background: var(--bs-soft); }
body.bs-living .bs-search summary svg { display: block; width: 24px; height: 24px; }

body.bs-living .bs-search > form,
body.bs-living .bs-mobile-nav > nav {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 40;
  width: min(400px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid var(--bs-line);
  border-top-color: var(--bs-ink);
  border-radius: 0;
  background: var(--bs-paper);
  box-shadow: 0 8px 20px rgb(20 22 20 / 8%);
}

body.bs-living .bs-search > form { display: flex; align-items: stretch; gap: 8px; }
body.bs-living .bs-search input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--bs-line);
  border-radius: 2px;
  background: var(--bs-paper);
  color: var(--bs-ink);
  font: inherit;
  font-size: 16px;
}

body.bs-living .bs-search button {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--bs-key);
  border-radius: 2px;
  background: var(--bs-key);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.bs-living .bs-home { width: 100%; }
body.bs-living .bs-hero {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  min-height: 460px;
  height: clamp(460px, 43vw, 520px);
  border-bottom: 1px solid var(--bs-ink);
}

body.bs-living .bs-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 36px 32px 36px var(--bs-gutter);
}

body.bs-living .bs-hero-copy h1 {
  margin: 0;
  font-size: clamp(35px, 4.1vw, 54px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.27;
  text-wrap: balance;
  word-break: normal;
}

body.bs-living .bs-hero-copy p {
  margin-top: 22px;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.8;
}
body.bs-living .bs-hero-copy :where(h1, p) > span { display: block; }
body.bs-living .pagination-next { display: none; }
body.bs-living.bs-homepage .pagination { margin: 0 0 40px; }

body.bs-living .bs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  max-width: 100%;
  padding: 13px 22px;
  border: 1px solid var(--bs-key);
  border-radius: 0;
  background: var(--bs-key);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
}

body.bs-living .bs-button:hover { background: #123e33; color: #fff; }
body.bs-living .bs-button svg { flex: 0 0 auto; width: 19px; height: 19px; }
body.bs-living .bs-hero-copy .bs-button { margin-top: 27px; }
body.bs-living .bs-hero-media { min-width: 0; min-height: 0; margin: 0; }
body.bs-living .bs-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

body.bs-living .bs-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 18px 24px;
  border-bottom: 1px solid var(--bs-ink);
}

body.bs-living .bs-categories > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border-right: 1px solid var(--bs-line);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

body.bs-living .bs-categories > a:last-child { border-right: 0; }
body.bs-living .bs-categories > a:hover { color: var(--bs-key); }
body.bs-living .bs-categories svg { flex: 0 0 auto; width: 29px; height: 29px; stroke-width: 1.5; }
body.bs-living .bs-categories span { min-width: 0; }

body.bs-living .bs-section {
  padding: 42px var(--bs-gutter) 44px;
  border-bottom: 1px solid var(--bs-line);
}

body.bs-living .bs-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

body.bs-living .bs-section-heading h2 {
  margin: 0;
  font-size: clamp(23px, 2.5vw, 32px);
  letter-spacing: -.025em;
  line-height: 1.4;
}

body.bs-living .bs-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
}

body.bs-living .bs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
body.bs-living .bs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.bs-living .bs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.bs-living .bs-card { min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.bs-living .bs-card a { color: inherit; text-decoration: none; }
body.bs-living .bs-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bs-soft); }
body.bs-living .bs-card-image img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border: 0; border-radius: 0; transition: transform 180ms ease; }
body.bs-living .bs-card-image:hover img { transform: scale(1.025); }
body.bs-living .bs-card-body { padding-top: 13px; }
body.bs-living .bs-card-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; color: var(--bs-muted); font-size: 11px; line-height: 1.6; }
body.bs-living .bs-card-meta time { font-variant-numeric: tabular-nums; white-space: nowrap; }
body.bs-living .bs-card :is(h2, h3) { margin: 8px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.55; }
body.bs-living .bs-card :is(h2, h3) a:hover { color: var(--bs-key); text-decoration: underline; text-underline-offset: 4px; }

body.bs-living .bs-partner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--bs-width);
  min-height: 132px;
  margin: 0 auto;
  padding: 28px var(--bs-gutter);
  border-top: 1px solid var(--bs-ink);
  border-bottom: 1px solid var(--bs-line);
  background: var(--bs-paper);
}

body.bs-living .bs-partner-name { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -1.1px; line-height: 1.2; white-space: nowrap; }
body.bs-living .bs-partner p { margin: 0; padding-left: 32px; border-left: 1px solid var(--bs-line); font-size: 15px; font-weight: 600; line-height: 1.7; }
body.bs-living .bs-partner .bs-button { min-width: 172px; }

body.bs-living .bs-footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--bs-width);
  margin: 0 auto;
  padding: 24px var(--bs-gutter) 28px;
  color: var(--bs-muted);
  font-size: 11px;
  line-height: 1.7;
}

body.bs-living .bs-footer-brand { margin-right: auto; color: var(--bs-ink); font-size: 14px; font-weight: 700; }
body.bs-living .bs-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
body.bs-living .bs-footer-bottom p { flex-basis: 100%; margin: 0; }

body.bs-living .bs-hub { padding: 48px var(--bs-gutter) 64px; }
body.bs-living .bs-hub > h1 { max-width: 760px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; line-height: 1.4; }
body.bs-living .bs-hub > p { max-width: 760px; margin: 20px 0 40px; font-size: 17px; line-height: 1.9; }
body.bs-living .bs-hub-step { padding: 34px 0 42px; border-top: 1px solid var(--bs-line); }
body.bs-living .bs-hub-step h2 { margin-bottom: 14px; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.5; letter-spacing: -.02em; }
body.bs-living .bs-hub-step > p { max-width: 760px; margin-bottom: 24px; color: var(--bs-muted); line-height: 1.85; }
body.bs-living .bs-empty { padding: 28px 0; color: var(--bs-muted); }

/* Existing article content keeps its links, button colors and table data. */
body.bs-living :where(.article-header, .entry-content, .article-footer, .under-entry-content, .breadcrumb, .archive-title, .archive-description) {
  width: 100%;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

body.bs-living .entry-title { margin: 12px 0 22px; padding: 0; color: var(--bs-ink); font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.5; }
body.bs-living .entry-content { margin-top: 32px; font-size: 16px; line-height: 1.95; }
body.bs-living .entry-content p { margin: 0 0 1.65em; line-height: 1.95; letter-spacing: .01em; }
body.bs-living .entry-content :where(h2, h3, h4) { scroll-margin-top: 28px; color: var(--bs-ink); background: transparent; border-radius: 0; font-weight: 700; }
body.bs-living .entry-content h2 { margin: 2.8em 0 1.1em; padding: 0 0 .6em; border: 0; border-bottom: 1px solid var(--bs-line); font-size: 27px; line-height: 1.5; }
body.bs-living .entry-content h2::after { content: none; }
body.bs-living .entry-content h3 { margin: 2em 0 1em; padding: 0; border: 0; font-size: 21px; line-height: 1.6; }
body.bs-living .entry-content h4 { padding: 0; border: 0; font-size: 18px; }
body.bs-living .entry-content :where(ul, ol) { padding-left: 1.5em; line-height: 1.9; }
body.bs-living .entry-content li { margin-bottom: .35em; }
body.bs-living .entry-content > :where(img, figure, svg) { max-width: 100%; }
body.bs-living .entry-content img { height: auto; }
body.bs-living .entry-content .wp-block-table { width: 100%; max-width: 100%; margin: 28px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.bs-living .entry-content .wp-block-table table { min-width: 600px; margin: 0; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
body.bs-living .entry-content :where(th, td) { padding: 12px 14px; border: 1px solid var(--bs-line); vertical-align: top; }
body.bs-living .entry-content th { background: var(--bs-soft); color: var(--bs-ink); font-weight: 700; }
body.bs-living .entry-content td { background: var(--bs-paper); }
body.bs-living .entry-content :where(figcaption, .wp-element-caption) { margin-top: 10px; color: var(--bs-muted); font-size: 12px; line-height: 1.7; }
body.bs-living .toc { width: 100%; max-width: 760px; margin: 32px auto; padding: 24px 28px; border: 1px solid var(--bs-line); border-radius: 2px; background: var(--bs-paper); font-size: 14px; line-height: 1.8; }
body.bs-living .toc-title { color: var(--bs-ink); font-size: 16px; font-weight: 700; }
body.bs-living .toc :where(ul, ol) { margin-bottom: 0; }
body.bs-living .toc a { color: var(--bs-ink); text-decoration: none; }
body.bs-living .toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
body.bs-living .date-tags { color: var(--bs-muted); font-size: 12px; }
body.bs-living .article-header .sns-share { display: none; }
body.bs-living.bs-moving-guide :where(.toc, .sns-share, .sns-follow, .date-tags) { display: none; }
body.bs-living.bs-moving-guide .entry-content { padding: 0 var(--bs-gutter); }
body.bs-living .bs-article-related { margin: 52px 0 0; padding-top: 32px; border-top: 1px solid var(--bs-line); }
body.bs-living .bs-article-related > h2 { margin: 0 0 24px; padding: 0; border: 0; font-size: 25px; line-height: 1.5; }
body.bs-living .bs-article-related .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.bs-living .bs-card-image img { height: 100%; }
body.bs-living .bs-card :is(h2, h3) { margin: 8px 0 0; padding: 0; border: 0; background: transparent; font-size: 19px; line-height: 1.55; }
body.bs-living #footer { background: #fff; border-top: 1px solid var(--bs-line); }
body.bs-living #footer-in { width: 100%; max-width: var(--bs-width); padding: 0; }
body.bs-living .footer-widgets { padding: 24px var(--bs-gutter) 0; font-size: 12px; color: var(--bs-muted); }
body.bs-living .bs-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--bs-muted); font-size: 16px; }
body.bs-living .bs-categories > a > svg:last-child { width: 17px; height: 17px; margin-left: auto; }
body.bs-living .bs-list-title { font-size: 32px; margin: 0 0 32px; }
body.bs-living.bs-moving-guide .article-header { padding: 40px var(--bs-gutter) 0; }
body.bs-living.bs-moving-guide .bs-hub { padding-left: 0; padding-right: 0; }
body.bs-living .bs-article-related .bs-section { padding: 0; border: 0; }
body.bs-living .entry-content .bs-partner { grid-template-columns: 1fr auto; padding: 28px 0; gap: 16px 24px; margin-top: 40px; }
body.bs-living .entry-content .bs-partner-name { font-size: 30px; }
body.bs-living .entry-content .bs-partner p { grid-column: 1; grid-row: 2; padding: 0; border: 0; }
body.bs-living .entry-content .bs-partner .bs-button { grid-column: 2; grid-row: 1 / 3; }

@media (max-width: 1050px) {
  body.bs-living { --bs-gutter: 32px; }
  body.bs-living .bs-header-inner { gap: 18px; }
  body.bs-living .bs-brand strong { font-size: 27px; }
  body.bs-living .bs-desktop-nav { gap: 18px; font-size: 12px; }
  body.bs-living .bs-search { padding-left: 12px; }
  body.bs-living .bs-categories { padding-right: 16px; padding-left: 16px; }
  body.bs-living .bs-categories > a { gap: 10px; padding: 0 10px; font-size: 12px; }
  body.bs-living .bs-categories svg { width: 26px; height: 26px; }
  body.bs-living .bs-partner { gap: 24px; }
  body.bs-living .bs-partner p { padding-left: 24px; font-size: 14px; }
}

@media (max-width: 900px) {
  body.bs-living .bs-desktop-nav { display: none; }
  body.bs-living .bs-mobile-nav { display: block; }
  body.bs-living .bs-mobile-nav > nav { display: flex; flex-direction: column; right: -64px; width: min(360px, calc(100vw - 40px)); }
  body.bs-living .bs-mobile-nav nav a { display: block; min-height: 48px; padding: 11px 6px; border-bottom: 1px solid var(--bs-line); font-size: 15px; font-weight: 700; }
  body.bs-living .bs-mobile-nav nav a:last-child { border-bottom: 0; }
  body.bs-living .bs-hero { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); height: 440px; min-height: 0; }
  body.bs-living .bs-hero-copy { padding-right: 24px; }
  body.bs-living .bs-hero-copy h1 { font-size: 39px; }
  body.bs-living .bs-hero-copy p { font-size: 15px; }
  body.bs-living .bs-hero-copy .bs-button { gap: 10px; padding-right: 14px; padding-left: 14px; font-size: 13px; }
  body.bs-living .bs-grid { gap: 22px; }
  body.bs-living .bs-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.bs-living .bs-card :is(h2, h3) { font-size: 17px; }
  body.bs-living .bs-partner { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; }
  body.bs-living .bs-partner-name { font-size: 30px; }
  body.bs-living .bs-partner p { grid-column: 1; grid-row: 2; padding: 0; border: 0; }
  body.bs-living .bs-partner .bs-button { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 640px) {
  body.bs-living { --bs-gutter: 20px; }
  body.bs-living .bs-header-inner { min-height: 80px; padding-top: 14px; padding-bottom: 14px; gap: 4px; }
  body.bs-living .bs-brand { min-width: 0; }
  body.bs-living .bs-brand strong { font-size: clamp(21px, 5.9vw, 28px); letter-spacing: -.9px; }
  body.bs-living .bs-brand small { margin-top: 5px; font-size: 10px; letter-spacing: 0; }
  body.bs-living .bs-search { padding-left: 0; border-left: 0; }
  body.bs-living .bs-mobile-nav > nav { right: -48px; }
  body.bs-living .bs-search > form,
  body.bs-living .bs-mobile-nav > nav { top: calc(100% + 18px); padding: 16px; }
  body.bs-living .bs-hero { display: flex; flex-direction: column; height: auto; min-height: 0; }
  body.bs-living .bs-hero-copy { padding: 32px var(--bs-gutter) 30px; }
  body.bs-living .bs-hero-copy h1 { font-size: clamp(36px, 9.5vw, 48px); line-height: 1.3; letter-spacing: -.045em; }
  body.bs-living .bs-hero-copy p { margin-top: 18px; font-size: 16px; line-height: 1.8; }
  body.bs-living .bs-hero-copy .bs-button { min-height: 50px; margin-top: 22px; padding: 12px 20px; font-size: 14px; }
  body.bs-living .bs-hero-media { width: 100%; aspect-ratio: 3 / 2; }
  body.bs-living .bs-hero-media img { height: 100%; }
  body.bs-living .bs-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px var(--bs-gutter); }
  body.bs-living .bs-categories > a { justify-content: flex-start; min-height: 64px; gap: 12px; padding: 10px 8px; font-size: 13px; border-right: 0; border-bottom: 1px solid var(--bs-line); }
  body.bs-living .bs-categories > a:nth-child(odd) { padding-left: 0; }
  body.bs-living .bs-categories > a:last-child { border-bottom: 0; }
  body.bs-living .bs-categories > a:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  body.bs-living .bs-categories svg { width: 27px; height: 27px; }
  body.bs-living .bs-section { padding: 32px var(--bs-gutter); }
  body.bs-living .bs-section-heading { flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 20px; }
  body.bs-living .bs-section-heading h2 { font-size: 24px; line-height: 1.45; }
  body.bs-living .bs-text-link { margin-left: auto; padding: 4px 0; font-size: 12px; }
  body.bs-living .bs-grid,
  body.bs-living .bs-grid-2,
  body.bs-living .bs-grid-3,
  body.bs-living .bs-article-related .bs-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.bs-living .bs-card-body { padding-top: 12px; }
  body.bs-living .bs-card :is(h2, h3) { margin-top: 7px; font-size: 20px; line-height: 1.55; }
  body.bs-living .bs-card-meta { font-size: 12px; }
  body.bs-living .bs-partner { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 30px var(--bs-gutter); }
  body.bs-living .bs-partner-name { font-size: 34px; }
  body.bs-living .bs-partner p { grid-column: auto; grid-row: auto; font-size: 15px; }
  body.bs-living .bs-partner .bs-button { grid-column: auto; grid-row: auto; justify-self: start; min-width: 170px; margin-top: 5px; }
  body.bs-living .entry-content .bs-partner { grid-template-columns: minmax(0, 1fr); }
  body.bs-living .entry-content .bs-partner p,
  body.bs-living .entry-content .bs-partner .bs-button { grid-column: auto; grid-row: auto; }
  body.bs-living .bs-footer-bottom { display: block; padding: 24px var(--bs-gutter) 32px; }
  body.bs-living .bs-footer-brand { display: block; margin: 0 0 16px; }
  body.bs-living .bs-footer-bottom nav { gap: 2px 18px; margin-bottom: 20px; }
  body.bs-living .bs-footer-bottom nav a { font-size: 12px; }
  body.bs-living .bs-hub { padding: 32px var(--bs-gutter) 40px; }
  body.bs-living .bs-hub > h1 { font-size: 31px; }
  body.bs-living .bs-hub > p { margin: 18px 0 30px; font-size: 16px; }
  body.bs-living .bs-hub-step { padding: 28px 0 34px; }
  body.bs-living .bs-hub-step h2 { font-size: 24px; }
  body.bs-living #main { padding: 30px var(--bs-gutter) 48px; }
  body.bs-living .entry-title { font-size: 28px; line-height: 1.5; }
  body.bs-living .entry-content { margin-top: 24px; font-size: 16px; }
  body.bs-living .entry-content h2 { font-size: 24px; }
  body.bs-living .entry-content h3 { font-size: 20px; }
  body.bs-living .toc { padding: 20px; }
  body.bs-living .bs-article-related { margin-top: 40px; padding-top: 28px; }
  body.bs-living .bs-article-related > h2 { font-size: 24px; }
}

/* Give the homepage's town-search destination a distinct closing panel. */
body.bs-living.bs-homepage .bs-partner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 40px;
  min-height: 204px;
  padding: 40px var(--bs-gutter);
  border: 0;
  color: #fff;
  background: var(--bs-key);
}
body.bs-living.bs-homepage .bs-partner-name { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -1.5px; }
body.bs-living.bs-homepage .bs-partner p { grid-column: 1; grid-row: 2; padding: 0; border: 0; color: #fff; font-size: 15px; font-weight: 400; }
body.bs-living.bs-homepage .bs-partner .bs-button {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-content: space-between;
  min-width: 220px;
  min-height: 60px;
  margin: 0;
  padding: 16px 24px;
  border: 1px solid #fff;
  color: var(--bs-key);
  background: #fff;
  font-size: 16px;
}
body.bs-living.bs-homepage .bs-partner .bs-button:hover { color: #fff; background: transparent; }
body.bs-living.bs-homepage .bs-partner .bs-button:focus-visible { outline-color: #fff; }
body.bs-living.bs-homepage .bs-partner .bs-button > span { font-size: 23px; line-height: 1; }

@media (max-width: 640px) {
  body.bs-living.bs-homepage .bs-partner { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 0; padding: 30px var(--bs-gutter); }
  body.bs-living.bs-homepage .bs-partner-name { font-size: clamp(30px, 8.8vw, 38px); letter-spacing: -1px; }
  body.bs-living.bs-homepage .bs-partner p { grid-column: auto; grid-row: auto; font-size: 14px; line-height: 1.7; }
  body.bs-living.bs-homepage .bs-partner .bs-button { grid-column: auto; grid-row: auto; justify-self: stretch; width: 100%; min-width: 0; min-height: 56px; margin-top: 8px; padding: 13px 20px; font-size: 15px; }
}

/* A compact, photo-led opening for the mobile homepage only. */
@media (max-width: 640px) {
  body.bs-living.bs-homepage .bs-header-inner { min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
  body.bs-living.bs-homepage .bs-hero-media { order: -1; height: clamp(190px, 56.25vw, 270px); aspect-ratio: auto; }
  body.bs-living.bs-homepage .bs-hero-media img { object-position: center 48%; }
  body.bs-living.bs-homepage .bs-hero-copy {
    position: relative;
    z-index: 1;
    align-items: stretch;
    margin: -20px 16px 0;
    padding: 18px 16px 14px;
    background: var(--bs-paper);
  }
  body.bs-living.bs-homepage .bs-hero-copy h1 { width: 100%; font-size: clamp(22px, 7vw, 30px); line-height: 1.4; letter-spacing: -.045em; text-wrap: wrap; }
  body.bs-living.bs-homepage .bs-hero-copy h1 > span:not(:first-child) { display: inline; }
  body.bs-living.bs-homepage .bs-hero-copy p { display: none; }
  body.bs-living.bs-homepage .bs-hero-copy .bs-button {
    align-self: flex-start;
    min-height: 44px;
    margin-top: 6px;
    padding: 0;
    gap: 14px;
    border: 0;
    color: var(--bs-key);
    background: transparent;
    font-size: 13px;
  }
  body.bs-living.bs-homepage .bs-hero-copy .bs-button:hover { color: var(--bs-ink); background: transparent; text-decoration: underline; text-underline-offset: 5px; }
  body.bs-living.bs-homepage .bs-categories {
    display: flex;
    gap: 24px;
    padding: 8px var(--bs-gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--bs-gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--bs-line) transparent;
  }
  body.bs-living.bs-homepage .bs-categories > a {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0;
    gap: 9px;
    border: 0;
    font-size: 13px;
    white-space: nowrap;
  }
  body.bs-living.bs-homepage .bs-categories svg { width: 23px; height: 23px; }
  body.bs-living.bs-homepage .bs-categories > a > svg:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.bs-living .bs-card-image img { transition: none; }
  body.bs-living .bs-card-image:hover img { transform: none; }
}
