body.bp-editorial {
  --bp-ink: #000;
  --bp-secondary: #515151;
  --bp-paper: #fff;
  --bp-line: #bcbcbc;
  --bp-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "MS PMincho", serif;
  --bp-reading: 44rem;
  --bp-works: 61rem;
}

.bp-editorial #header .bp-wordmark {
  display: block;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.8rem) .75rem;
  color: var(--bp-ink);
  text-align: center;
}

.bp-editorial .bp-wordmark .site-name {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.bp-wordmark-name {
  font: 700 clamp(1.65rem, 7.3vw, 4.25rem)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: .045em;
  white-space: nowrap;
}

.bp-wordmark-subtitle {
  font: 600 clamp(.8rem, 2.8vw, 1rem)/1.45 var(--bp-serif);
  letter-spacing: .12em;
}

.bp-wordmark .site-name:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.bp-editorial #content-in {
  display: block;
  width: min(83rem, calc(100% - clamp(2rem, 7vw, 7rem)));
  margin-inline: auto;
}

.bp-editorial #content-in > #main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem) 0;
  border: 0;
  background: var(--bp-paper);
}

/* Keep the original sidebar node. Cocoon moves and renames it in its mobile drawer. */
.bp-editorial #content-in > #sidebar {
  width: 100%;
  max-width: var(--bp-works);
  height: auto;
  margin: 2rem auto;
}

.bp-editorial-instagram-sidebar #content-in > #sidebar:has(> #custom_html-7) {
  display: block;
  padding: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--bp-line);
  background: transparent;
}

.bp-editorial-instagram-sidebar #content-in > #sidebar:has(> #custom_html-7) > :not(#custom_html-7) {
  display: none;
}

.bp-home {
  background-color: var(--bp-paper);
  color: var(--bp-ink);
  line-height: 1.7;
}

.bp-home :is(h2, h3) {
  margin: 0;
  color: inherit;
  font-family: var(--bp-serif);
  line-height: 1.3;
}

.bp-home :is(figure, p, ul) { margin: 0; }
.bp-home ul { list-style: none; padding: 0; }
.bp-home a { color: inherit; text-underline-offset: .22em; }
.bp-home a:focus-visible, .bp-home :is(input, select):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.bp-home [hidden] { display: none !important; }
.bp-home section { scroll-margin: 6rem; }

.bp-home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.75rem;
  border-block: 1px solid var(--bp-line);
}

.bp-home-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9rem;
  text-decoration: none;
}

.bp-home-nav a:hover, .bp-names a:hover, .bp-card a:hover { text-decoration: underline; }
.bp-home-nav { margin-bottom: clamp(1rem, 2vw, 1.75rem); }

.bp-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  align-items: center;
  background: var(--bp-paper);
  color: var(--bp-ink);
}

.bp-feature img { display: block; width: 100%; height: auto; }
.bp-feature figcaption { padding: .65rem 1rem; color: var(--bp-secondary); }
.bp-feature-copy { padding: clamp(1.15rem, 3.25vw, 3.5rem); }
.bp-feature-copy .bp-eyebrow { font-size: .875rem; letter-spacing: .06em; }
.bp-feature-copy h2 { margin-block: .55rem; font-size: clamp(1.85rem, 3.1vw, 3rem); text-wrap: balance; }
.bp-feature-copy p + p { margin-top: .85rem; }

.bp-home .bp-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.1rem;
  border: 1px solid;
  padding: .5rem .9rem;
  text-decoration: none;
}

.bp-home figcaption, .bp-editorial-article .entry-content :is(.wp-block-image, .bp-commons-image, .bp-nga-image) > figcaption {
  overflow-wrap: anywhere;
  font-size: .9rem;
  line-height: 1.65;
}

.bp-section { margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--bp-line); padding-top: 1.15rem; background-color: var(--bp-paper); }
.bp-home-paged #bp-latest { margin-top: 0; }
.bp-section > h2 { margin-bottom: 1.2rem; font-size: clamp(1.55rem, 3vw, 2.45rem); }
.bp-section > .bp-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .12em .5em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .025em;
}
.bp-section-heading-subtitle {
  color: var(--bp-secondary);
  font: 600 clamp(.875rem, 1.45vw, 1.15rem)/1.4 var(--bp-serif);
  letter-spacing: .04em;
}
.bp-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-bottom: .85rem; }
.bp-filters label { display: grid; gap: .25rem; font-size: .875rem; }
.bp-filters :is(input, select) { width: 100%; min-height: 44px; min-width: 0; font: inherit; font-size: 1rem; }
.bp-home #bp-archive-status { margin-block: .65rem; color: var(--bp-secondary); font-size: .875rem; }
.bp-home #bp-archive-status:empty { margin-block: 0; }

.bp-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.bp-names li { border-top: 1px solid var(--bp-line); }
.bp-names a { display: block; min-height: 44px; padding-block: .65rem; text-decoration: none; }
.bp-home .bp-archive-toggle {
  min-height: 44px;
  min-width: 9rem;
  margin-top: .85rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--bp-ink);
  background: transparent;
  color: var(--bp-ink);
  font: inherit;
  cursor: pointer;
}
.bp-home .bp-archive-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1rem, 3vw, 2.75rem); }
.bp-card { border-top: 1px solid var(--bp-line); padding-top: .65rem; }
.bp-card figure > a { display: block; aspect-ratio: 3/2; background: var(--bp-paper); }
.bp-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bp-card-work figcaption { margin-top: .5rem; color: var(--bp-secondary); }
.bp-card h3 { margin-top: .65rem; font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.bp-card h3 a { text-decoration: none; }

.bp-editorial-article #main .article-header,
.bp-editorial-article #main .entry-footer,
.bp-editorial-article #main .entry-content > :is(p, h2, h3, h4, blockquote, ul, ol) {
  width: min(100%, var(--bp-reading));
  margin-inline: auto;
}

.bp-editorial-article #main .entry-title {
  font: 600 clamp(1.85rem, 4.5vw, 3.6rem)/1.3 var(--bp-serif);
  text-wrap: balance;
}

.bp-editorial-article #main .entry-content {
  background-color: var(--bp-paper);
  color: var(--bp-ink);
}

.bp-editorial-article #main .entry-content :is(h2, h3),
.bp-editorial-article #main .entry-content > h4 {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding-inline: 0;
  font-family: var(--bp-serif);
}

.bp-editorial-article #main .entry-content h2 {
  border-bottom: 2px solid var(--bp-ink);
  margin-block: 2.5rem 1rem;
  padding-block: 0 .625rem;
  font-size: 1.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

.bp-editorial-article #main .entry-content h3 {
  margin-block: 1.75rem .75rem;
  padding-block: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.45;
}

.bp-editorial-article #main .entry-content > p {
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  line-height: 1.95;
}

.bp-editorial-article #main .entry-content > :is(figure.bp-commons-image, figure.bp-nga-image, figure.wp-block-image, .bp-opening-photos) {
  width: min(100%, var(--bp-works));
  max-width: 100%;
  margin-inline: auto;
}

.bp-editorial-article #main .entry-content :is(.bp-commons-image, .bp-nga-image, .wp-block-image) img {
  max-width: 100%;
  height: auto;
}

.bp-editorial-article #main .entry-content > :is(figure.bp-commons-image, figure.bp-nga-image, figure.wp-block-image) img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.bp-editorial-article #main .entry-content :is(.wp-block-image, .bp-commons-image, .bp-nga-image) > figcaption {
  /* The legacy caption declares its size and colour inline. */
  font-size: .9rem !important;
  color: var(--bp-secondary) !important;
  text-align: start;
}

.bp-editorial-article #main .entry-content a.external-blogcard-wrap {
  display: block;
  width: min(100%, var(--bp-reading));
  margin: .625rem auto;
  padding: 0;
  background-color: var(--bp-paper);
}

.bp-editorial-article #main .entry-content a.external-blogcard-wrap:focus-visible {
  outline: 2px solid var(--bp-ink);
  outline-offset: 3px;
}

.bp-editorial-article #main .entry-content .external-blogcard {
  padding: .375rem .625rem;
  border: 1px solid var(--bp-line);
  border-radius: 0;
  background-color: var(--bp-paper);
}

.bp-editorial-article #main .entry-content .external-blogcard-thumbnail {
  width: 110px;
  max-width: 35%;
  margin-block: .125rem 0;
  margin-inline: 0 .75rem;
}

.bp-editorial-article #main .entry-content .eb-right .external-blogcard-thumbnail {
  margin-inline: .75rem 0;
}

.bp-editorial-article #main .entry-content .external-blogcard-thumb-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.bp-editorial-article #main .entry-content .external-blogcard-content {
  display: flow-root;
  min-height: 0;
  max-height: none;
  margin: 0;
}

.bp-editorial-article #main .entry-content .external-blogcard-title {
  margin-bottom: .2rem;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bp-editorial-article #main .entry-content .external-blogcard-snippet {
  display: -webkit-box;
  max-block-size: 2.8em;
  overflow: hidden;
  font-size: .875rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bp-editorial-article #main .entry-content .external-blogcard-footer {
  padding-top: .125rem;
  font-size: .75rem;
  line-height: 1.35;
}

.bp-editorial-article #main #related-entries { max-width: var(--bp-works); margin-inline: auto; }
.bp-editorial-article #main .footer-meta .author-info { display: none; }
.bp-editorial-article .sns-share .share-button { filter: grayscale(1); }

.bp-editorial-article .sns-share .share-button:is(.x-corp-button, .twitter-button) { --bp-share-color: #242529; }
.bp-editorial-article .sns-share .share-button.facebook-button { --bp-share-color: #355476; }
.bp-editorial-article .sns-share .share-button.hatebu-button { --bp-share-color: #446375; }
.bp-editorial-article .sns-share .share-button.pinterest-button { --bp-share-color: #793f46; }
.bp-editorial-article .sns-share .share-button.line-button { --bp-share-color: #365f4e; }

.bp-editorial-article .sns-share .share-button:is(.x-corp-button, .twitter-button, .facebook-button, .hatebu-button, .pinterest-button, .line-button) {
  background-color: var(--bp-share-color);
  border-color: var(--bp-share-color);
  color: #fff;
  filter: none;
  opacity: 1;
}

.bp-editorial-article .sns-share .share-button:is(.x-corp-button, .twitter-button, .facebook-button, .hatebu-button, .pinterest-button, .line-button):is(:hover, :focus-visible) {
  background-color: color-mix(in srgb, var(--bp-share-color), #000 16%);
}

.bp-editorial-article .sns-share .share-button:focus-visible {
  outline: 2px solid var(--bp-ink);
  outline-offset: 3px;
}

@media screen and (max-width: 1023px) {
  html:has(> body.bp-editorial) {
    scroll-padding-top: calc(50px + env(safe-area-inset-top, 0px) + .5rem);
  }

  body.bp-editorial:is(.mblt-footer-mobile-buttons, .mblt-header-and-footer-mobile-buttons) {
    margin-bottom: 0;
  }

  .bp-editorial .mobile-footer-menu-buttons {
    position: relative;
    inset: auto;
  }
}

@media (max-width: 900px) {
  .bp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-feature { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

@media (max-width: 670px) {
  .bp-feature, .bp-names, .bp-filters { grid-template-columns: minmax(0, 1fr); }

  .bp-editorial-article #main .entry-content h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
  }

  .bp-editorial-article #main .entry-content h3 {
    font-size: 1.1875rem;
  }
}

@media (max-width: 600px) {
  .bp-cards { grid-template-columns: minmax(0, 1fr); }
  .bp-editorial-article #main .bp-opening-photos > div > div { flex-basis: 100% !important; }
}
