.sheet {
  padding-bottom: 1em;
  overflow-wrap: anywhere;
}
#content .sheet { padding-top: .75em; }
.sheet p { color: inherit; }

.breadcrumbs { margin-bottom: .75em; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .5em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li + li::before { content: "›"; margin-right: .5em; }

.article-header { margin-bottom: 1.5em; }
.article-header h1 {
  margin: 0;
  font-size: 150%;
  line-height: 1.4;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75em;
  margin: .75em 0 0;
}
.article-meta .category {
  padding-left: .75em;
  border-left: 1px solid #ccc;
}

.section-title { margin: 0 0 .75em; }
#content .section-title span { font-size: inherit; }

.post, .article-ad-middle { margin: 0 0 40px; }
.post { padding: 0; border: 0; }
/* 広告タグの上余白を枠内に収め、直前のレスとの間隔を保つ。 */
.article-ad-middle { display: flow-root; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px .5em;
  color: #808080;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.5;
}
.post-meta span { font-size: inherit; }
.sheet .post-body, .sheet .quote p { color: #333; font-weight: bold; line-height: 1.6; }
.post-body { margin: .5em 0 0; }
.quote {
  margin: .5em 0 0;
  padding: .75em 1em;
  border: 1px solid #ccc;
  background: #f7f7f7;
}
.quote p { margin: 0; }
.post.reply {
  margin-left: 1em;
  padding-left: .75em;
  border-left: 2px solid #ccc;
}
.post:target { background: #eaf5ff; }
.emphasis-red { color: #e0001b; }
.emphasis-blue { color: #0b3fd6; }
.emphasis-large { line-height: 1.5; }

.article-image { margin: .75em 0; }
.article-image img, .post-image img { display: block; max-width: 100%; height: auto; }
.article-image figcaption { margin-top: .25em; font-size: .85em; }
.post-image { display: block; width: fit-content; max-width: 100%; }

/* 生成されたウィジェットのインライン指定より、記事欄の幅と左寄せを優先する。 */
.sheet .twitter-tweet {
  box-sizing: border-box;
  width: 100%;
  max-width: min(100%, 550px) !important;
  min-width: 0 !important;
  margin: .75em 0 !important;
}
.sheet blockquote.twitter-tweet {
  padding: .65em .85em;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  overflow-wrap: anywhere;
}
.sheet .twitter-tweet iframe { max-width: 100% !important; min-width: 0 !important; }

.after-thread, .back { margin-top: 1.5em; }
.sources { margin: 0; }
.sheet .listview { margin: 0; }
.article-meta span.category { font-size: inherit; }
/* スマートフォン: 記事下の一覧と見出しを本家の一覧と同じく画面の端から端まで広げる */
.sheet .listview, .sheet h2.listheader { margin-left: -15px; margin-right: -15px; }
/* スマートフォン: 本家の一覧は行の上にだけ線があり、次の部品が下を閉じる。記事ページでは閉じる部品が無いので一覧の下に同じ線を引く */
#content .sheet ul.listview { border-bottom: 2px solid #a8a8a8; margin-bottom: 1.5em; }
/* スマートフォン: 本家は見出しの帯が一覧の先頭の行で、帯と一覧・一覧と次の帯の間にすき間が無い。同じく詰める */
#content .sheet h2.listheader { margin-top: 0; margin-bottom: 0; }
#content .sheet ul.listview { margin-bottom: 0; }
#content .after-thread + .after-thread { margin-top: 0; }
/* スマートフォン: 帯の枠線と行の線が重なって太く見えないよう、境目の線はどこも 2px 1本にそろえる */
#content .sheet h2.listheader { border-top: 2px solid #a8a8a8; border-bottom: 2px solid #a8a8a8; }
#content .sheet ul.listview > li:first-child { border-top: 0; }
#content .after-thread:not(:last-of-type) ul.listview { border-bottom: 0; }
/* スマートフォン: 出典もほかの一覧と同じ行の形（小さい見出し＋題名＋右の矢印）にする */
#content .sources .source-label { display: block; padding-left: 4px; }
/* スマートフォンの記事ページ */
#content .breadcrumbs { font-size: .85em; color: #666; }
#content .article-header { margin-bottom: 2em; }
#content .article-header h1 {
  padding: .55em .7em;
  border-left: 8px solid #1a73e8;
  border-bottom: 2px solid #1a73e8;
  background: #f2f7fe;
  font-size: 21px;
  line-height: 1.45;
  color: #111;
}
#content .article-meta { align-items: center; margin: .8em 0 0; color: #555; font-size: .95em; }
#content .article-meta span.category, #content .article-meta a.category {
  padding: .15em .8em;
  border: 0;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-size: .9em;
  font-weight: bold;
  text-decoration: none;
}
#content .article-image { margin: 1.2em auto 0; text-align: center; }
#content .article-image img { margin: 0 auto; border-radius: 6px; }
#content .article-image figcaption { color: #777; font-size: .8em; }
#content .post-body, #content .quote p { font-size: 17px; }
#content .emphasis-large { font-size: 22px; }
#content .quote { margin-top: .6em; border: 1px solid #c9dcf7; border-left: 4px solid #1a73e8; background: #f7faff; }

/* PC */
main { --matome-nav-blue: #1873ea; /* #global-nav の背景画像 */ }
main > #blogservice, main > #headline { max-width: 1210px; box-sizing: border-box; }
main .matome-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px);
  gap: 24px;
  align-items: start;
}
main .matome-layout > .sheet { min-width: 0; }

main .breadcrumbs { font-size: .85em; color: #666; }
main .article-header {
  display: flex;
  align-items: flex-start;
  gap: 18px 24px;
  margin-bottom: 1.5em;
  padding: .75em 0 1em;
  border-bottom: 4px solid var(--matome-nav-blue);
}
main .article-heading { flex: 1; min-width: 0; }
main .article-header h1 { font-size: 24px; font-weight: bold; }
main .article-meta { align-items: baseline; color: #666; }
main .article-meta .category {
  padding: .1em .55em;
  border: 1px solid var(--matome-nav-blue);
  border-radius: 3px;
  font-size: .9em;
}
main .article-image { flex: 0 0 42%; max-width: 360px; margin: 0; }
main .article-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
}
main .article-image figcaption { color: #666; text-align: right; }

main .section-title.side_box_title {
  border-bottom: 1px solid #ccc;
  border-left: 4px solid var(--matome-nav-blue);
}
main .article-sidebar {
  border: 1px solid #ccc;
  background: #fff;
  overflow-wrap: anywhere;
}
main .article-sidebar .side_box_title {
  margin: 0;
  border-top: 0;
  border-right: 0;
}
main .sidebar-feed { margin: 0; padding: 0; list-style: none; }
main .sidebar-feed li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 9px;
}
main .sidebar-feed li + li { border-top: 1px solid #ccc; }
main .sidebar-entry { min-width: 0; line-height: 1.45; }
main .sidebar-meta { margin-top: .25em; color: #666; font-size: .82em; }
main .sidebar-meta time { white-space: nowrap; }
main .feed-thumb { display: block; flex: none; width: 70px; height: 70px; object-fit: cover; }

main .post, main .article-ad-middle { margin-bottom: 48px; }
main #res-1 {
  padding: .9em 1em;
  border: 1px solid #ccc;
  border-left: 4px solid var(--matome-nav-blue);
  background: #f5f5f5;
}
main .quote { margin-top: .5em; padding: 0; border: 0; background: transparent; }
main .post-body, main .quote p { font-size: 18px; }
main .post.reply { margin-left: 1.5em; padding-left: 1em; }
main .post:target, main #res-1:target { background: #eaf5ff; }
main .emphasis-large { font-size: 24px; }
main .post-image img { max-width: min(100%, 640px); max-height: 520px; }
main .article-ad { min-height: 250px; text-align: center; }

main .matome-feed { overflow-wrap: anywhere; }
main .matome-feed th, main .matome-feed td { padding: 4px 8px; }
main .matome-feed .list_line_li_header th { text-align: center; }
main .matome-feed .list_line_li > th { border-bottom: 1px solid #ccc; white-space: nowrap; }
main .matome-feed .list_line_li_date { white-space: nowrap; }
main .matome-feed .list_line_li_articletitle div { min-width: 0; height: auto; overflow: visible; }
main .matome-feed .list_line_li_graph { width: 122px; min-width: 65px; }
main .matome-feed .list_line_li_blogservice { min-width: 0; }

main .matome-feed .bargraph { width: 100%; margin: 0; }
main .matome-feed .bargraph > .bar {
  appearance: none;
  display: block;
  float: none;
  width: 100%;
  background: transparent;
  box-shadow: none;
}
main .matome-feed .bar::-webkit-meter-bar { height: 100%; border: 0; border-radius: 0; background: transparent; }
main .matome-feed .bar::-webkit-meter-optimum-value { background: linear-gradient(#158bdf, #0370be); }
main .matome-feed .bar::-moz-meter-bar { background: linear-gradient(#158bdf, #0370be); }

main .back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1em;
  border: 1px solid var(--matome-nav-blue);
  border-radius: 3px;
  background: #f5f5f5;
  font-weight: bold;
}
main .back a:hover { text-decoration: underline; }

@media (min-width: 1000px) {
  main .matome-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 336px; gap: 40px; }
  main .article-sidebar {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
}

@media (width < 900px) {
  main .article-header { flex-direction: column; align-items: stretch; }
  main .article-image { flex: none; width: min(360px, 100%); align-self: flex-end; }
}

main #blogservice > .list_line_table .list_line_li_header th { font-weight: normal; text-align: center; border-bottom: 1px solid #ccc; }
