ol {
  margin: 0;
}

summary {
  cursor: pointer;
}

main {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  padding: 20px;
}

@media screen and (min-width: 520px) {
  main {
    --max-article-width: 920px;

    row-gap: 2em;
    padding-top: 30px;
    padding-bottom: 60px;
    padding-left: max(30px, calc((100vw - var(--max-article-width)) / 2));
    padding-right: max(30px, calc((100vw - var(--max-article-width)) / 2));
  }
}

/* ------------------------------
article
------------------------------ */

/*
既存の`section.sub` `.contain` `basicBlock`などで競合する指定を整理する目的で、`article`タグを使用
Markdownを使うページから順次移行する
*/
article {
  display: flex;
  flex-direction: column;
  gap: 2em;
  font-size: 16px;
}

a[href$=".pdf"]::after {
  content: "\f1c1";
  font: var(--fa-font-solid);
  padding-left: 0.25em;
}

.article-header h1 {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.25;
}

@media screen and (min-width: 520px) {
  .article-header h1 {
    font-size: 36px;
    line-height: 1.45;
  }
}

.article-header .newsDate {
  font-size: 14px;
  color: #47525d;
}

.article-header .disclaimer {
  font-weight: bold;
}

.article-header .disclaimer a {
  text-decoration: underline;
  color: rgba(51, 146, 209, 1);
}

/* ------------------------------
.markdown
------------------------------ */

/*
Markdownで記述された箇所に適用する
既存の`.contain`と`.subpage`で指定されたスタイルのうち、本文の装飾に使われているものを整理する目的で、新たに`.markdown`として設定
Markdownを使うページが増えるにつれて、スタイルも是正されていく
*/

.markdown {
  display: flex;
  flex-direction: column;
  row-gap: 1.5em;
  align-items: flex-start;
  line-height: 1.6;
  color: #47525d;
}

.markdown p {
  width: 100%;
}

.markdown a {
  margin: 0 2px;
  text-decoration: underline;
  color: rgba(51, 146, 209, 1);
}

.markdown a[target="_blank"]:not([class]):not([href$=".pdf"])::after {
  content: "\f08e";
  font: var(--fa-font-solid);
  padding-left: 0.5em;
  color: rgba(51, 146, 209, 0.6);
  font-size: 10px;
}

/* markdown内の.link-buttonについての記述 */
.markdown a.link-button {
  text-decoration: none;
  color: #fff;
}

.markdown img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-style: none;
}

.markdown hr {
  width: 100%;
  height: 1px;
  margin: 0;
  background-color: #dcdcdc;
  border: 0;
}

.markdown ul,
.markdown ol {
  display: flex;
  flex-direction: column;
  padding-left: 1.5em;
  row-gap: 0.5em;
}

.markdown ul > li {
  list-style: unset;
}

.markdown ol > li {
  list-style-type: decimal;
}

.markdown table {
  border-spacing: 0;
  border-collapse: collapse;
  max-width: 100%;
  overflow: auto;
}

.markdown table th {
  font-weight: 600;
  background-color: #eee;
}

.markdown table th,
.markdown table td {
  padding: 10px 10px;
  border: 1px solid #d0d4d9;
}

.markdown table td:first-child {
  min-width: 6em; /* 現時点では /documents/conflict_of_interest で有効に機能している */
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  margin-top: 0.25em;
  font-weight: 600;
  line-height: 1.25;
}

.markdown h2 {
  font-weight: 600;
  font-size: 1.4em;
}

/* ------------------------------
Additinoal Class
------------------------------ */

/* ページ下部の注意事項に使用 */
.markdown .footnotes {
  font-size: 14px;
  white-space: pre-wrap;
  color: #999;
}

.markdown .footnotes ul {
  padding-left: 16px;
}

.markdown .footnotes li {
  list-style-type: "※";
}

/*
読んでほしい注意事項に使用
2020/12時点では、ページ下部の注意事項を目立たせる目的でも使用している

TODO：統合できそうであれば統合したい
*/
.markdown .message {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  background-color: #ebeff0;
  border-radius: 5px;
}
@media screen and (min-width: 520px) {
}

.markdown .message ul {
  padding-left: 20px;
  row-gap: 0.5em;
}

/* 推奨環境 */
table.systemRequirements {
  width: 100%;
}
table.systemRequirements th,
table.systemRequirements td {
  text-align: center;
  padding-top: 1em;
  padding-bottom: 1em;
}
table.systemRequirements th {
  background-color: #ebeff0;
}
table.systemRequirements td {
  line-height: 2;
}
table.systemRequirements td.tableHeading {
  background-color: #ebeff0;
  font-weight: 600;
}

@media screen and (max-width: 500px) {
  table.systemRequirements {
    font-size: 13px;
  }
}
