/* 共通CSSのタグ指定を専用領域で整え、続く専用CSSの指定を優先する。 */
.support_next_generation_contents :is(main, section, article, header, nav, p, ul, ol, li, dl, dt, dd, figure, h1, h2, h3, h4, h5, h6, button) {
  margin: 0;
  padding: 0;
}

.support_next_generation_contents :is(ul, ol, li) {
  line-height: inherit;
  vertical-align: baseline;
}

.support_next_generation_contents :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
  font: inherit;
  text-align: inherit;
}

.support_next_generation_contents h1 {
  max-width: none;
  position: static;
}

.support_next_generation_contents h1::after {
  content: none;
}

/* 共通の横並び見出しを解除し、専用CSSで下罫を描く。 */
.support_next_generation_contents h2.h2 {
  display: block;
  position: static;
  margin: 0;
  padding: 0;
}

.support_next_generation_contents h2.h2::before {
  content: none;
}

.support_next_generation_contents .h2::after {
  all: unset;
}

.support_next_generation_contents button {
  border-radius: 0;
}

/* 共通の小さい文字・画像の基準位置を元のレイアウトに合わせる。 */
.support_next_generation_contents small {
  font-size: smaller;
}

.support_next_generation_contents :is(img, svg) {
  vertical-align: baseline;
}

/* 共通の a:visited:hover と詳細度をそろえる。 */
:where(.support_next_generation_contents) a:visited:hover {
  color: inherit;
}

/* ローカルナビの sticky を有効にする。 */
.support_next_generation_contents main {
  overflow: visible;
  position: static;
}

#header.newgen-top-anchor {
  position: absolute;
  inset: 0 auto auto 0;
  margin: 0;
  padding: 0;
}

#newgen-share {
  background: #F2F2F2;
  border-bottom: 1px solid #D0D0D0;
}

#newgen-share .newgen-share__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

/* SDKが挿入するインライン要素のベースライン余白を除く。 */
#newgen-share .newgen-share__buttons > div {
  display: flex;
  align-items: center;
}

#newgen-share iframe {
  vertical-align: middle;
}

#newgen-share #share-line {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  background: #00873C;
  border-radius: 3px;
  color: #fff;
  font: 700 12px/1 Helvetica, Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  white-space: nowrap;
}

#newgen-share #share-line img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

@media (max-width: 767px) {
  #newgen-common-footer #top-cover {
    bottom: 20px;
  }

  #newgen-share #share-line {
    display: inline-flex;
  }
}
/* 共通フッターを含む、このページのフォーカス枠を非表示にする。 */
body.newgen-page :focus {
  outline: none !important;
}

