@charset "utf-8";

body {
  margin: 8px;
  font-family: "Hiragino Sans W3", "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic",
    sans-serif;
}

header h1.title {
  font-size: 34px;
  font-weight: 900;
  margin: 56px 0 24px;
  text-align: center;
}

h1 {
  margin-top: 48px;
  text-align: center;
  font-size: 24px;
}

h1[id^="要綱ここまで"],
h1[id^="第一章-本サービスの利用に関する規定ここまで"],
h1[id^="第二章-米の売買取引に関する規定ここまで"] {
  text-align: right;
  font-size: 16px;
  margin: 24px 0 48px;
}

h2 {
  margin: 1.5em 0 12px;
  font-size: 24px;
  font-weight: bold;
}

ol {
  padding-left: 20px;
}

li {
  margin: 0.5em;
}

ul {
  padding-left: 14px;
  list-style-type: disc;
}

p {
  margin: 0.5em;
}

body > ol {
  margin-left: 1.5em;
  padding: 0;
}

body > ol > li {
  list-style-type: none;
  position: relative;
}

body > ol > li:before {
  display: inline-block;
  margin-left: -1.5em;
  width: 1em;
  text-align: right;
  position: absolute;
  top: 0;
  left: 0;
}

body > ol > li > p {
  display: inline;
}

body > ol > li > p + p {
  display: block;
}

body > ol > li:nth-child(1):before {
  content: "１. ";
  display: inline-block;
}

body > ol > li:nth-child(2):before {
  content: "２. ";
  display: inline-block;
}

body > ol > li:nth-child(3):before {
  content: "３. ";
  display: inline-block;
}

body > ol > li:nth-child(4):before {
  content: "４. ";
  display: inline-block;
}

body > ol > li:nth-child(5):before {
  content: "５. ";
  display: inline-block;
}

body > ol > li:nth-child(6):before {
  content: "６. ";
  display: inline-block;
}

body > ol > li:nth-child(7):before {
  content: "７. ";
  display: inline-block;
}

body > ol > li:nth-child(8):before {
  content: "８. ";
}

body > ol > li:nth-child(9):before {
  content: "９. ";
  display: inline-block;
}

body > ol > li > ul {
  padding-left: 14px;
}

body > ol > li > ol {
  margin-left: 15px;
  padding-left: 15px;
}

body > ol > li > ol > li {
  list-style-type: none;
  counter-increment: cnt;
  position: relative;
}

body > ol > li > ol > li:before {
  content: "(" counter(cnt) ")";
  display: inline-block;
  margin-left: -2.5em;
  width: 2em;
  text-align: right;
  position: absolute;
  top: 0;
  left: 0;
}

body > ol > ol > li > p {
  margin: 0;
}

body > ol > ol li ul {
  list-style-type: disc;
}

ol.enclosed-alphanumerics {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

ol.enclosed-alphanumerics > li:before {
  content: "";
}

a.link {
  color: black;
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
}

table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

table tr td:first-child {
  white-space: nowrap;
  vertical-align: top;
}

table p {
  margin: 0;
}

table li {
  margin: 0 0.5em;
}

@page {
  size: A4;
  margin: 25.4mm 20mm;
}

@media print {
  body {
    width: calc(210mm - 40mm); /* needed for Chrome */
    height: 297mm;
  }

  a {
    color: black;
  }

  table {
    display: table;
    overflow-x: visible;
    white-space: normal;
  }
}
