.sn-legacy-mail-article-route {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
}

.sn-legacy-mail-article-route .sn-mm-standalone {
  width: 700px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
}

.sn-legacy-mail-article-route .sn-mm-standalone-logobar {
  width: 700px;
  max-width: 100%;
  margin: 0 auto;
  border-top: 25px solid #c5dec5;
  border-bottom: 0;
}

.sn-legacy-mail-article-route .sn-mm-standalone-logobar img {
  width: 700px;
  height: 95px;
  max-width: 100%;
  object-fit: contain;
}

.sn-legacy-mail-article-route .sn-mm-standalone-inner {
  width: 670px;
  max-width: calc(100% - 30px);
  margin: 0 auto;
  padding: 15px 0 0;
}

.sn-legacy-mail-article-route .sn-mm-standalone-breadcrumb {
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 0;
}

.sn-legacy-mail-article-route .sn-mm-standalone-title {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  align-items: flex-start;
  min-height: 45px;
  margin: 20px 0 10px;
  padding: 10px 16px 0;
  box-sizing: border-box;
  color: #000;
  font-family: "MS PMincho", "ＭＳ Ｐ明朝", "Hiragino Mincho Pro", serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  background:
    url("../../images/legacy-mail/title_left.gif") left top / 10px 45px no-repeat,
    url("../../images/legacy-mail/title_right.gif") right top / 10px 45px no-repeat;
}

.sn-legacy-mail-article-route .sn-mm-standalone-share {
  display: block;
  box-sizing: border-box;
  height: 80px;
  margin: 0;
  padding-top: 20px;
  text-align: right;
}

.sn-legacy-mail-article-route .sn-mm-standalone-byline,
.sn-legacy-mail-article-route .sn-mm-standalone-byline .pages-writer {
  clear: both;
  margin: 10px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.7;
  text-align: right;
}

.sn-legacy-mail-article-route .sn-mm-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  height: 20px;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  vertical-align: bottom;
}

.sn-legacy-mail-article-route .sn-mm-share-icon {
  display: inline-block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.sn-legacy-mail-article-route .sn-mm-share-fb {
  width: 91px;
  background: #1877f2;
}

.sn-legacy-mail-article-route .sn-mm-share-tw {
  width: 77px;
  margin-left: 4px;
  background: #000;
  border-radius: 999px;
}

.sn-legacy-mail-article-route .sn-mm-share-btn:hover,
.sn-legacy-mail-article-route .sn-mm-share-btn:focus-visible {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content {
  color: #333;
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article {
  font-size: 15px;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content p,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article p {
  margin: 0;
  line-height: 1.7em;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article .pages-writer {
  clear: both;
  margin: 10px 0 18px;
  text-align: center;
  line-height: 1.7;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article h3 {
  margin: 20px 0 10px;
  padding-left: 1em;
  color: #000;
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  text-align: left;
  text-indent: -1em;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article h3::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 23px;
  margin-right: 0;
  vertical-align: -5px;
  background: url("../../images/legacy-mail/s-tt.gif") left top / contain no-repeat;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article h4,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article h5 {
  margin: 25px 0 10px;
  padding: 4px 0 2px 20px;
  border-bottom: 1px solid #8cc137;
  color: #060;
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  text-align: left;
  background: url("../../images/legacy-mail/ss-tt.gif") left center / auto no-repeat;
}

/* Long bare URLs used as link text (e.g. 「（http://www.nihs.go.jp/mhlw/chemical/doku/dokuindex.html）」
   in mail/100801/04) have no break opportunity and pushed the page wider than
   the phone screen — let links (only) wrap anywhere when they don't fit. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article a {
  overflow-wrap: anywhere;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_t_area {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  word-break: normal;
  /* first-line indent of every paragraph, as in the original mail/main.css */
  text-indent: 1em;
}

/* 注・文献 lines (legacy mail/main.css; .notes 898×, .notes01 45× in the
   data): hanging indent so 「1)　…」「[1] …」 wrap under the text, e.g. the
   references in mail/170801/02/ and mail/160301/03/. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .notes {
  padding-left: 1.7em;
  text-indent: -1.7em;
}
/* notes04 (e.g. mail/160101/02/): plain note line, no first-line indent
   from .mail_t_area. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .notes04 { text-indent: 0; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .notes01 {
  padding-left: 1em;
  text-indent: -1em;
  margin: 0;
  line-height: 1.5em;
}

/* Floated figure boxes (<div class="pict-right"><img><p>図１…</p></div>,
   e.g. mail/200701/01/) — defined identically in each issue's own
   mail/<YYMMDD>/style.css; text wraps around them as on the original page. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .pict-right { float: right; margin: 5px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .pict-left  { float: left;  margin: 5px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-text-b { font-weight: bold; }
/* Caption inside a floated figure box sits right under the image, like the
   original (p margin reset to 0; 11pt / line-height 1.7). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .pict-right p,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .pict-left p {
  margin: 0;
  font-size: 11pt;
  line-height: 1.7;
}

/* Hanging-indent / caption helpers defined identically in each issue's own
   mail/<YYMMDD>/style.css (indentback 105×, text_noindcap 65×… in the data) —
   e.g. 「図１．…」 captions in mail/211001/01/, 「表1　…」 in mail/190101/03/. */
/* .indentminus first, like the original style.css: on <p class="indentminus
   indentback-en"> (mail/230701/01/) the indentback* hanging indent must win. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .indentminus {
  text-indent: -1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .indentback     { text-indent: -2em;  padding-left: 2em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .indentback2    { text-indent: -1em;  padding-left: 1em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .indentback2-5  { text-indent: -1.5em; padding-left: 1.5em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .indentback3    { margin-top: 3px; text-indent: -1em; padding-left: 4em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .indentback4    { text-indent: -3em;  padding-left: 4em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .indentback_3   { margin-top: 3px; text-indent: 0; padding-left: 3em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .indentback-en  { text-indent: -11em; padding-left: 11em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .text_noindcap  { text-indent: -1px; margin-top: 20px; }

.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-center {
  margin: 20px 0;
  text-align: center;
  text-indent: -1px;
}
/* Figure paragraphs (<p class="add-center add-02-img"><img>…, e.g.
   mail/201101/03/) — no bottom margin, like the original (style.css reset
   every <p> margin to 0). */
/* Author photo in the 略歴 block (<div class="mail_history"><p><img>,
   e.g. mail/200701/01/) sat flush left on the original page — don't centre it. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_history img {
  margin-left: 0;
  margin-right: auto;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-center.add-02-img {
  margin-bottom: 0;
}
/* …and the caption paragraph right below the figure sits directly under it
   (e.g. 「図　カルシウムイオンとEDTA…」 in mail/201101/03/). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-center.add-02-img + .add-center {
  margin-top: 0;
}
/* Blank line kept between a figure and its caption where the original had
   <p>&nbsp;</p> (importer step 5a in sn_parse_legacy_mail_shtml_body()). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-spacer {
  height: calc(11pt * 1.7);
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-spacer + .add-center {
  margin-top: 0;
}
/* Figure + caption blocks that were <center> in the original (importer step
   4b, e.g. 〈表示例〉 in mail/150401/02/): centred caption. The blank lines come
   from the original <br><br> pairs, which the importer now keeps (step 6). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-center {
  text-align: center;
  text-indent: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-center table {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[class*="mail_table"] td[align="left"],
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[class*="mail_table"] th[align="left"] { text-align: left; }

.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-center img,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article img {
  display: block;
  max-width: 100%;
  height: auto;
  /* centred block images, no vertical margin */
  margin-left: auto;
  margin-right: auto;
}

/* Body images are display:block (above), so a legacy <br> right after one
   (「<img><br>写真キャプション」) only adds an empty line before the caption.
   Hide it — except in .add-center, where images stay inline-block and the
   <br> is the real line break. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article img + br {
  display: none;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-center img + br {
  display: inline;
}
/* …but when that <br> only ends the figure before the next block
   (<center><img><br><br></center><div class="mail_t_area">③個別規格…, e.g.
   mail/150401/02/ — the importer collapses <br><br> to one), the original
   showed a blank line there: keep one line of space under the image. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article img:has(+ br + :is(div, p, h3, h4, h5, table, ul, ol)) {
  margin-bottom: calc(11pt * 1.7);
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-center img {
  display: inline-block;
}

/* Cleaned-up articles that keep the original GIF section headings as
   <h3 class="mail-cap"><img …></h3> (e.g. mail/100801/04/): the GIF already
   carries the green bar, so drop the CSS bar, and use the original page's
   rhythm/text (16px, line-height 1.5, #333; 30px before a heading, 15px after). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article h3.mail-cap {
  margin: 30px 0 15px;
  padding: 0;
  text-indent: 0;
  line-height: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article h3.mail-cap:first-child { margin-top: 0; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article h3.mail-cap::before { content: none; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article h3.mail-cap img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(h3.mail-cap) .mail_t_area,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(h3.mail-cap) .mail_t_area p,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(h3.mail-cap) li {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* Tables in those articles (表1/表2 in mail/100801/04): the original page showed
   a full-width grid with a light-cyan (#CCFFFF) header row, every cell centred,
   no padding and no visible rules (the site style.css set border-spacing:0, so
   the #999 cellspacing grid never showed). Captions (表1．…) were regular weight. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(h3.mail-cap) table {
  width: 100%;
  margin: 0 0 15px;
  border-collapse: separate;
  border-spacing: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(h3.mail-cap) table th,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(h3.mail-cap) table td {
  padding: 0;
  border: 0;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(h3.mail-cap) table th { background: #CCFFFF; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(h3.mail-cap) .add-text-b.add-center {
  margin: 15px 0 5px;
  font-size: 16px;
  font-weight: normal;
  text-align: center;
}

/* Section-heading images (img/NN_capNN.gif, e.g. mail/090901/03/'s 「はじめに」)
   sat left-aligned in their original <td> — don't center them like body images,
   unless the legacy cell itself asked for align="center". */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article img[src*="_cap"] {
  margin-left: 0;
  margin-right: auto;
}
/* 「参考文献」 / 「筆者略歴」 heading images (img/bunken.gif 42 articles,
   img/chosya.gif + chosya02.gif 29 articles, e.g. mail/100801/01/) sat flush
   left in their <td> on the original page — don't centre them. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article img[src*="/bunken."],
.sn-legacy-mail-article-route .sn-mm-standalone-content--article img[src*="/chosya"] {
  margin-left: 0;
  margin-right: auto;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article [align="center"] > img[src*="_cap"] {
  margin-left: auto;
}

/* Some legacy bodies leave a <table> unclosed, so the browser pulls the bottom
   .sn-mm-standalone-share into the article box (e.g. mail/090901/03/) — keep its
   FB icon out of the body-image margin rule above so it matches the top buttons. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .sn-mm-share-icon {
  margin: 0;
}


.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_history {
  text-align: left;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article .list-num1 {
  margin: 0;
  padding: 0;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article .list-num1 dt {
  float: left;
  clear: left;
  width: 2.2em;
  font-weight: normal;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article .list-num1 dd {
  margin: 0 0 5px 2.2em;
}

/* This route also loads tailwind-output.css (page-contact.css/mail-magazine.css
   dependency chain), whose Preflight resets `ol,ul,menu{list-style:none}` —
   restore plain <ol>/<ul> numbering/bullets for any list that ISN'T one of the
   special list-indent-N/list-num1 variants styled below (see mail/250201/01/'s
   <ol class="list-indent-none"> — a real 1,2,3… numbered list whose markers
   were otherwise silently wiped by that Preflight reset). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article ol {
  list-style: decimal;
  padding-left: 1.8em;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article ul:not(.mail-image__center) {
  list-style: disc;
  padding-left: 1.8em;
}

/* Legacy .shtml migration cleaned up <table><td><img src="ya.gif">…</td></table>
   bullet rows (see e.g. inc/data/legacy-mail/100801/04.shtml's original vs.
   current markup) into plain <ul class="list-indent-N"><li> — but dropped the
   ya.gif arrow bullet in the process. Restore it as a list-style-image so the
   migrated markup renders the same bullet the original table layout had.
   Excludes list-indent-none: that's an <ol> whose original numbers (1, 2, 3…)
   must stay — [class*="list-indent-"] would otherwise match its name prefix
   too and wipe the numbering with list-style:none (see mail/250201/01/).
   Excludes list-indent-4 too: that one's items already carry their own
   inline number ("1）", "2)"…) in the text — e.g. a 参考文献 reference list
   (see mail/250201/01/) — so no bullet/icon is needed on top of it. Its
   list-style:none override below needs the "ul" element in the selector
   (not just ".list-indent-4") to out-specificity the disc rule above:
   :not(.mail-image__center)'s argument counts toward specificity same as a
   real class, so "ul:not(...)" = (0,3,1) beats a class-only ".list-indent-4"
   selector at (0,3,0) despite coming later in the file. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article [class*="list-indent-"]:not(.list-indent-none):not(.list-indent-4) {
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article ul.list-indent-4 {
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

/* list-indent-N items = hanging indent, NO icon — as defined in each issue's
   own mail/<YYMMDD>/style.css (188 articles, e.g. the 参考文献 list in
   mail/201001/03/). Those rules pull li back by -2.5em to cancel the <ul>'s
   default 40px padding (padding is already 0 here, so margin-left 0), and
   list-indent-3 by -3em (net -0.5em). Chrome/Safari used 2.4em for -2. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article [class*="list-indent-"]:not(.list-indent-none) li {
  margin: 0;
  padding-bottom: 5px;
  word-break: break-all;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .list-indent-1 li { padding-left: 1em; text-indent: -1em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .list-indent-2 li { padding-left: 2.4em; text-indent: -2.4em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .list-indent-3 li { margin-left: -0.5em; padding-left: 2.5em; text-indent: -2.5em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .list-indent-4 li { padding-left: 1.5em; text-indent: -1.5em; }
/* Reference links inside these lists (e.g. 同仁化学研究所 in mail/201101/03/)
   — no underline, like the original (style.css: a { text-decoration: none }). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article [class*="list-indent-"] a { text-decoration: none; }

/* ya.gif arrow bullet — only for lists the migration converted from the old
   <table><td><img src="ya.gif"> layout (marked .list-ya in the source, e.g.
   inc/data/legacy-mail/100801/04.shtml). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .list-ya li {
  padding-left: 20px;
  text-indent: 0;
  margin: 0 0 4px;
  background: url("../../images/legacy-mail/ya.gif") left 0.5em no-repeat;
  background-size: 14px 14px;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article table {
  width: auto;
  max-width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 11pt;
}
/* width="100%" attribute (e.g. the 略歴 table in mail/171201/02/) — the
   width:auto above would otherwise shrink the table to its content. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[width="100%"] {
  width: 100%;
}

.sn-legacy-mail-article-route .sn-mm-standalone-content--article table th,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table td {
  /* Original style.css reset td padding to 0 (cellpadding was a no-op) —
     e.g. the 50px 「1973年」 column in mail/171201/02/ fits on one line. */
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11pt;
  font-weight: normal;
  vertical-align: top;
}

/* Legacy source uses style="border-bottom:double" on header cells (e.g. the
   表-1 table in mail/141001/03/). That inline style only sets border-bottom-
   style — width/color still come from the border:0 reset above, which zeroes
   border-bottom-width and makes the double line invisible. Give it a width
   and color so the inline style actually renders. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table td[style*="border-bottom:double"],
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table th[style*="border-bottom:double"] {
  border-bottom-width: 3px;
  border-bottom-color: #666;
}

/* A rowspan cell (e.g. the merged エネルギー換算係数 value spanning several
   rows in mail/180501/03/'s 難消化性糖質 table) should center its short value
   across the full merged height, not sit pinned to the top like a normal cell. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table td[rowspan] {
  vertical-align: middle;
}

/* Per-cell/row border utility classes (legacy mail/main.css) — used on
   <table class="mail_table_tr"> grids like the 難消化性糖質 table in
   mail/180501/03/. table th/td's border:0 reset above would otherwise win by
   loading later in this same file, so these need to come after it. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_br {
  border-right: #666 solid 1px;
  border-bottom: #666 solid 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_bl {
  border-bottom: #666 solid 1px;
  border-left: #666 solid 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_tr {
  border-top: #666 solid 1px;
  border-right: #666 solid 1px;
}
/* <table class="mail_table_tr"> grids (e.g. 難消化性糖質 in mail/180501/03/):
   no vertical margin from the generic legacy table rule (20px 0). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_tr {
  margin-top: 0;
  margin-bottom: 0;
}

/* 文献リスト <dl> lists (legacy mail/main.css) — dt number floats left, dd
   text continues on the same line (e.g. the 参考文献 list in mail/150401/02/).
   Without these the dt is a full-width block and every dd drops below it. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_list dt,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_bunken dt,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_listhonbun dt {
  float: left;
  clear: left;
  text-indent: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_list dd,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_bunken dd,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_listhonbun dd {
  text-indent: 0;
  text-align: left;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_list dt,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_list dd { margin-bottom: 15px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_list dd { margin-left: 1.5em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_bunken dt,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_bunken dd { margin-bottom: 15px; font-size: 11pt; line-height: 1.3em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_bunken dd { margin-left: 2em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_listhonbun { margin-left: 15px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_listhonbun dt,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_listhonbun dd { margin-bottom: 10px; font-size: 11pt; line-height: 1.3em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_listhonbun dd { margin-left: 4em; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_trl {
  border-top: #666 solid 1px;
  border-right: #666 solid 1px;
  border-left: #666 solid 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_t {
  border-top: #666 solid 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_t-dashed {
  border-top: #666 dashed 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_b {
  border-bottom: #666 solid 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_border {
  border: #666 solid 1px;
  margin: 0 auto;
}
/* .mail_table_border data tables (e.g. 表-1 in mail/141001/03/) — match the
   original page: the table width attribute, the cells' align attribute, and
   the old style.css reset (td padding:0, default line-height) that made
   cellpadding a no-op and kept the rows compact. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border[width="100%"] { width: 100%; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border[width="400"] { width: 400px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border[width="400px"] { width: 400px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border[width="441"] { width: 441px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border[width="450"] { width: 450px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border[width="500px"] { width: 500px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border[width="550"] { width: 550px; }
/* Legacy mail_table_* tables (mail/main.css family: mail_table_border,
   mail_table_tr, …): cells sit vertically centred like the original <td>
   default (e.g. 「難消化性糖質」 next to a 2-line header in mail/180501/03/) —
   the generic reset above sets top. valign attributes still win. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[class*="mail_table"] td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[class*="mail_table"] th {
  vertical-align: middle;
  /* old style.css reset td padding to 0 (cellpadding was a no-op) and kept the
     default line-height — keeps the rows as compact as the original. */
  padding: 0;
  line-height: normal;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[class*="mail_table"] td[valign="top"],
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[class*="mail_table"] tr[valign="top"] > td { vertical-align: top; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[class*="mail_table"] td[valign="bottom"],
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[class*="mail_table"] tr[valign="bottom"] > td { vertical-align: bottom; }
/* bgcolor attribute — the generic reset's background:transparent hides it
   (only these two colours are used in .mail_table_border tables). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border [bgcolor="#D8D8D8" i] { background-color: #D8D8D8; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border [bgcolor="#CCFFCC" i] { background-color: #CCFFCC; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border td[align="center"],
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border th[align="center"] { text-align: center; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border td[align="right"],
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table.mail_table_border th[align="right"] { text-align: right; }

/* <table border="1"> data grids (e.g. mail/130301/02/'s 漬物 table; 10 mails
   in total) — the generic table/td reset above (width:auto, margin, border:0,
   padding:5px, transparent bg) wiped out the HTML attributes these tables rely
   on. Restore what the original mac.or.jp page rendered: width, 1px ruled
   cells, bordercolor, cellspacing, align/valign on the table and its cells,
   and bgcolor. cellpadding is
   deliberately ignored: the original style.css reset td padding to 0, so it
   never took effect there. Only the grid's OWN cells get rules — nested
   layout tables inside a cell (mail/121201/04/) stay borderless. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #333;
  font-size: 16px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][align="center"] { margin-left: auto; margin-right: auto; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][width="100%"] { width: 100%; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][width="396"] { width: 396px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][width="520"] { width: 520px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][width="560"] { width: 560px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][width="580"] { width: 580px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][cellspacing="1"] { border-spacing: 1px; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bgcolor="#999999"] { background: #999; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] > tbody > tr > td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] > tbody > tr > th,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] > tr > td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] > tr > th {
  border: 1px solid #333;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] td[align="center"], .sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] th[align="center"] { text-align: center; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] td[align="right"], .sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] th[align="right"] { text-align: right; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] td[valign="top"], .sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] th[valign="top"] { vertical-align: top; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] table { margin: 0; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] table td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] table th {
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] td p,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] th p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#999999"], .sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#999999"] > tbody > tr > td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#999999"] > tbody > tr > th,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#999999"] > tr > td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#999999"] > tr > th { border-color: #999; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#CCCCCC"], .sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#CCCCCC"] > tbody > tr > td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#CCCCCC"] > tbody > tr > th,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#CCCCCC"] > tr > td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#CCCCCC"] > tr > th { border-color: #ccc; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#006633"], .sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#006633"] > tbody > tr > td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#006633"] > tbody > tr > th,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#006633"] > tr > td,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"][bordercolor="#006633"] > tr > th { border-color: #063; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] [bgcolor="#FFFFCC"] { background: #ffc; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] [bgcolor="#CCCCCC"] { background: #ccc; }
.sn-legacy-mail-article-route .sn-mm-standalone-content--article table[border="1"] [bgcolor="#C5DEC5"] { background: #c5dec5; }

/* Legacy source wraps the table caption + table together in <center>
   (e.g. mail/141001/03/'s 表-1), but that tag gets stripped from the parsed
   body. Center the caption <p> immediately preceding a centered table too. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article p:has(+ .mail_table_border) {
  text-align: center;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_r {
  border-right: #666 solid 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_tbr {
  border-right: #666 solid 1px;
  border-bottom: #666 solid 1px;
  border-top: #666 solid 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_tb {
  border-bottom: #666 solid 1px;
  border-top: #666 solid 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_l {
  border-left: #666 solid 1px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_table_bl_bdash {
  border-bottom: #666 dashed 1px;
  border-left: #666 solid 1px;
}

.sn-legacy-mail-article-route .sn-mm-standalone-actions {
  display: block;
  margin: 26px 0 16px;
  text-align: center;
}

.sn-legacy-mail-article-route .sn-mm-standalone-back {
  display: block;
  width: 202px;
  height: 43px;
  margin: 0 auto 8px;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  color: transparent;
  background: url("../../images/legacy-mail/bt_backnumber.gif") center / 202px 43px no-repeat;
  text-indent: -9999px;
}

.sn-legacy-mail-article-route .sn-mm-standalone-back-home {
  background-image: url("../../images/legacy-mail/bt_home.gif");
}

.sn-legacy-mail-article-route .sn-mm-standalone-contact {
  margin: 12px 0 0;
  padding: 0 0 24px;
  border-top: 0;
  color: #333;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

/* Mirrors the legacy nested <table bgcolor="#C5DEC5"> footer (01_本体サイト):
   a hairline dark rule, 10px gap, copyright text, 10px gap — all on a
   #C5DEC5 background. Real element (.sn-mm-standalone-copyright, in
   register-access-ranking-blocks.php) — not a ::after — so the copyright
   text is real markup, matching the legacy page's own <td>/<font>. */
.sn-legacy-mail-article-route .sn-mm-standalone-copyright {
  display: block;
  width: 700px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 0 #333;
  padding: 10px;
  background: #c5dec5;
  color: #333;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 700px) {
  .sn-legacy-mail-article-route .sn-mm-standalone-inner {
    max-width: calc(100% - 20px);
  }

  .sn-legacy-mail-article-route .sn-mm-standalone-title {
    font-size: 18px;
  }
}

/* mail/090901/03/ (食品の異臭原因について) — match the original mac.or.jp page
   (01_本体サイト/mail/090901/03.shtml): its <table border=0 cellpadding=0> layout
   relies on spacer rows (<td height="15">) for rhythm, so drop the generic
   table/img margins + td padding above, use the original 16px/#333 body text,
   and keep the 97%-wide right-aligned sub-sections indented. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(img[src*="/legacy-mail/090901/img/03_"]) table {
  margin: 0;
  font-size: 16px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(img[src*="/legacy-mail/090901/img/03_"]) table[width="100%"] {
  width: 100%;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(img[src*="/legacy-mail/090901/img/03_"]) td[align="right"] > table[width="97%"] {
  width: 97%;
  margin-left: auto;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(img[src*="/legacy-mail/090901/img/03_"]) td {
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article:has(img[src*="/legacy-mail/090901/img/03_"]) img:not(.sn-mm-share-icon) {
  margin: 0;
}

/* Centred figure box (<div class="mail-image__center"><figure><img>…
   <p>図N. caption</p>, e.g. mail/260601/01/) — every original article
   style.css: box margin 1em auto, figure flush, caption 12px bold-able
   (.add-text-b) with 0.5em above it. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-image__center {
  margin: 1em auto;
  text-align: center;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-image__center figure {
  margin: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-image__center p {
  margin: 0.5em 0 0;
  font-size: 12px;
  line-height: 1.7;
}

/* ya.gif arrow kept as a real <img> in an old table-layout row
   (<td width="20"><img src="…/ya.gif" vspace="3"></td><td>検査項目例</td>,
   e.g. mail/060401/index/): inline, flush left, vspace="3" → 3px above/below,
   and the row at line-height normal like the original. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article td > img[src$="/ya.gif"] {
  display: inline;
  margin: 3px 0;
  vertical-align: baseline;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article td:has(> img[src$="/ya.gif"]),
.sn-legacy-mail-article-route .sn-mm-standalone-content--article td:has(> img[src$="/ya.gif"]) + td {
  line-height: normal;
}

/* Links in the article body have no underline, like every original page
   (style.css: a { text-decoration: none }, no hover rule) — e.g.
   「保存試験項目設定のめやす」 in mail/060401/index/. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article a,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article a:hover {
  text-decoration: none;
}

/* Access-counter page (/mail/<folder>/cnt/, sn_legacy_mail_counter_view()):
   centred 「<記事名>　アクセス数」 line, then the count in a 300px-high cell. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-counter {
  text-align: center;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-counter__label {
  margin: 15px 0;
  font-size: 12pt;
  line-height: 1.3;
  text-indent: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-counter__count {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}
/* The original counter page had only that line + the count: hide the title
   band (kept for screen readers — the page is noindex) and the share buttons. */
.sn-legacy-mail-counter .sn-mm-standalone-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sn-legacy-mail-counter .sn-mm-standalone-share {
  display: none;
}

/* <td align="right|center"> also moved a nested <table> in the original (HTML
   align attribute), but the importer's text-align only moves inline content —
   e.g. the ○必須/△選択 legend sat at the right edge in mail/060401/03/. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(td, th, div, p)[align="right"] > table {
  margin-left: auto;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(td, th, div, p)[align="center"] > table {
  margin-left: auto;
  margin-right: auto;
}
/* Original style.css: table { border-spacing: 0 } — cellspacing never showed
   (the #006600 cell behind that legend left no green lines). :where() keeps
   it below the specific grid rules above (table[border="1"][cellspacing="1"]…). */
:where(.sn-legacy-mail-article-route .sn-mm-standalone-content--article) table {
  border-spacing: 0;
}

/* Images directly in a layout-table cell (or wrapped in a link,
   e.g. the 相談窓口 banner in mail/060501/02/) followed the cell's alignment on the
   original (inline img, td default left), not the centred-block rule above —
   e.g. the 「ポジティブリスト制とは」 heading image in mail/060501/index/.
   Cells that were centred (align / inline text-align:center from the
   importer, or inside a <center> → .legacy-center) keep centring. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article td:not([align="center"]):not([align="right"]):not([style*="text-align:center"]):not([style*="text-align:right"]):not(.legacy-center td) > img,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article td:not([align="center"]):not([align="right"]):not([style*="text-align:center"]):not([style*="text-align:right"]):not(.legacy-center td) > a > img {
  margin-left: 0;
  margin-right: auto;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article td:is([align="right"], [style*="text-align:right"]) > img,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article td:is([align="right"], [style*="text-align:right"]) > a > img {
  margin-left: auto;
  margin-right: 0;
}
/* Same for any block with an explicit align attribute (<div align="left"><img>,
   e.g. 「細菌発育の3条件」 in mail/060601/index/; <p align="right">…). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article [align="left"] > img,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article [align="left"] > a > img {
  margin-left: 0;
  margin-right: auto;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article [align="right"] > img,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article [align="right"] > a > img {
  margin-left: auto;
  margin-right: 0;
}

/* Contain floats: <table align="right"> (float) at the end of the body — e.g. the
   last block of mail/060601/02/ — sat inside an outer layout cell on the original;
   the importer cuts that outer table, so without this the float hangs below the
   body and the share bar / 「他の記事を見る」 buttons wrap around it. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article {
  display: flow-root;
}

/* 略歴 year/entry lists (<div class="mail_history"><dl><dt>2001年</dt><dd>…</dd>,
   <dl class="mail_history02">, e.g. mail/240601/01/) — mail/main.css: the year
   floats left and the entry sits beside it, 11pt / line-height 1.3em. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(.mail_history, .mail_history02) dt {
  float: left;
  clear: left;
  margin: 0 0 15px;
  font-size: 11pt;
  line-height: 1.3em;
  text-indent: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(.mail_history, .mail_history02) dd {
  margin: 0 0 15px 7em;
  font-size: 11pt;
  line-height: 1.3em;
  text-indent: 0;
  text-align: left;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_history02 dt,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_history02 dd {
  margin-bottom: 5px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail_history02 dd {
  margin-left: 4em;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(.mail_history dl, dl.mail_history02)::after {
  content: '';
  display: block;
  clear: both;
}
/* Newer issues' own style.css (flagged .legacy-history-compact by the importer). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-history-compact dl {
  margin: 5px 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-history-compact :is(dt, dd) {
  margin-bottom: 5px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-history-compact dl.history1 {
  margin: 15px 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-history-compact dl.history1 :is(dt, dd) {
  margin-bottom: 15px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .legacy-history-compact dl.history1 dd {
  margin-left: 50px;
}

/* Title banner left in the body (<div id="title"><img title_left.gif>
   <div>…</div><img title_right.gif></div> — e.g. the English title
   「Space Travel Foods: Future Directions」 mid-way through mail/230701/01/):
   mail/main.css floats the two bracket images and the text in one row. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(#title, #title02) {
  margin: 20px 0 10px;
  text-align: left;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(#title, #title02)::after {
  content: '';
  display: block;
  clear: both;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(#title, #title02) > img {
  float: left;
  margin: 0;
  height: 45px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(#title, #title02) > div {
  float: left;
  height: 45px;
  padding-top: 10px;
  font-family: "ＭＳ Ｐ明朝", "MS PMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3em;
  color: #000;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article #title02 > div {
  font-size: 18px;
}

/* Further bylines in the body (<div id="mail_name">, mail/main.css): right-aligned
   15px — e.g. 「Sachi Sri Kantha, Ph.D.」 under the English title in mail/230701/01/. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article #mail_name {
  width: 100%;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.1em;
  text-align: right;
}

/* ── メルマガ記事 written in WP (block patterns, inc/article-templates.php) ──
   Block markup wraps groups in .wp-block-group__inner-container and figures in
   <figure class="wp-block-image">; these map it onto the legacy look. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .wp-block-image {
  margin: 0;
}
/* 図（2枚横並び）: <div class="mail-image__center flex"> of .mail-image__item */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-image__center.flex > .wp-block-group__inner-container,
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-image__center.flex:not(:has(> .wp-block-group__inner-container)) {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-image__item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}
/* 表: <figure class="wp-block-table mail-grid"> — the mail_table_tr / _bl grid
   (#666 1px rules, 5px cell padding) of the imported data tables. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-table-block {
  margin: 1em 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-grid table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-top: 1px solid #666;
  border-right: 1px solid #666;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-grid :is(th, td) {
  padding: 5px;
  border: 0;
  border-bottom: 1px solid #666;
  border-left: 1px solid #666;
  text-align: center;
  vertical-align: middle;
  text-indent: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-grid th {
  background: #e6f3e6;
  font-weight: bold;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-table-block .add-text-b {
  margin-bottom: 0.3em;
}
/* リンク（アイコン付き）: <a class="link-icon"> — blue underline + external mark
   (the original used a FontAwesome \f08e glyph). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article a.link-icon {
  border-bottom: 1px solid #1000df;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article a.link-icon::after {
  content: "\2197";
  margin: 0 3px;
  font-size: 0.85em;
}
/* 略歴（年表）: two-column table — year | entry, no rules. */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-history-years table {
  border: 0;
  border-collapse: collapse;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-history-years td {
  padding: 0 0 5px;
  border: 0;
  font-size: 11pt;
  line-height: 1.3em;
  text-align: left;
  vertical-align: top;
  text-indent: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-history-years td:first-child {
  width: 5em;
  white-space: nowrap;
}

/* Tables in the parts: no default figure / table margins (gap before 出典, and
   between 氏名 and the 略歴 year table). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(.mail-grid, .mail-history-years) {
  margin: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article :is(.mail-grid, .mail-history-years) table {
  margin: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-history-years {
  margin-top: 5px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-grid + .notes {
  margin-top: 0.3em;
}

/* ── More parts (box / diagram / formula / left figure / row-header table) ── */
/* 枠囲み: indented explanation block + dash list (mail/190201/02/). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-text-box {
  margin: 0.3em 0 0.6em 2em;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article ul.add-text-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-text-list li {
  padding-left: 2em;
  text-indent: -1em;
}
/* 図＋説明文: image, then a caption whose lines hang after 「図〇．」 (181101/02). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .diagram {
  margin: 20px 0 10px;
  text-indent: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .diagram img {
  margin-bottom: 10px;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .diagram-text p {
  padding-left: 2.2em;
  text-indent: -2.2em;
}
/* 数式＋式番号: centred formula image, number at the right edge (181201/02). */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-beside {
  position: relative;
  margin: 0.5em 0;
  text-align: center;
  text-indent: 0;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .add-beside p {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
/* 図（左寄せ） */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-image__center.add-left {
  text-align: left;
}
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-image__center.add-left img {
  margin-left: 0;
  margin-right: auto;
}
/* 表（左列が見出し） */
.sn-legacy-mail-article-route .sn-mm-standalone-content--article .mail-grid--rowhead tbody th {
  width: 25%;
  background: #e6f3e6;
  font-weight: bold;
}
