/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
  text-align: center;
  font-size: 85%;
  /*background: #fff url("../img/Texture0120.jpg") repeat;*/
  background: #f7f7ee;
  width: 100%;
  margin: 0 auto;
}
h1, h2, h3, h4, h5, p, ol, ul, li, dl, dt, dd, footer {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #c00;
}

table {
  table-layout: auto;
  border-collapse: collapse;
  margin: 0.5em;
}
table tr {
  border-bottom: solid 1px #aaa;
}
table th {
  padding-right: 1em;
}

strong {
  color: #8b0000; /* darkred */
  font-weight: normal;
}

ins {
  text-decoration: none;
}

/* header ------------------------------------------------------------------ */
header {
  text-align: left;
  margin: 0 auto;
  background: url(../img/SRC_logo.png) no-repeat 80% center, url(../img/top_title_header.png) no-repeat left bottom, url(../img/top_title_right_bg.png) repeat-x left bottom #fff;
  width: 100%;
  max-width: 940px;
  min-width: 720px;
  height: 8.5em; /* for IE */
  min-height: 8.5em; /* for not-IE */
  border: #ddd 1px solid;
/*  border-top-left-radius: 5px;
  border-top-right-radius: 5px;*/
}
.no-multiplebgs header {
  background: url(../img/SRC_logo.png) no-repeat 80% center #fff;
}
header h1, header h2, header p {
  position: relative;
  z-index: 3;
}
header h1 {
  text-shadow: 1px 1px 0 #fff;
  padding: 15px 0 0 20px;
  letter-spacing: 0.1em;
}
header h1 a {
  text-decoration: none;
  color: #4763c2;
}
header h2 {
  text-shadow: 1px 1px 0 #fff;
  padding: 0 0 0 20px;
  color: #000;
}
.language {
  padding-right: 15px;
  text-align: right;
  color: #999;
}
header p a {
  text-decoration: none;
  color: #039;
}
header p a:hover {
  color: #f00;
}

/* menu -------------------------------------------------------------------- */
.menu {
  width: 100%;
  max-width: 940px;
  min-width: 720px;
  margin: 0 auto;
  border: #ffa24c 1px solid;
  box-shadow: 1px 1px 0 #ffd78b inset;
  background: #ffb76b;
  background: -moz-linear-gradient(top, #ffb76b 0%, #ffad56 50%, #ffa24c 51%, #ff9838 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffb76b), color-stop(50%,#ffad56), color-stop(51%,#ffa24c), color-stop(100%,#ff9838));
  background: -o-linear-gradient(top, #ffb76b 0%,#ffad56 50%,#ffa24c 51%,#ff9838 100%);
  background: -ms-linear-gradient(top, #ffb76b 0%,#ffad56 50%,#ffa24c 51%,#ff9838 100%);
  background: linear-gradient(top, #ffb76b 0%,#ffad56 50%,#ffa24c 51%,#ff9838 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffb76b', endColorstr='#ff9838',GradientType=0 );
}
.top {
  float:left;
  width: 100%;
  line-height: 1.8;
  font-weight: bold;
}
.top>li {
  float: left;
  padding: 0.4em 1em;
  position: relative;
  color: #fff;
  border-right: 1px solid #ffa24c;
  box-shadow: 1px 0 0 #ffb76b;
  text-shadow: 0 -1px 1px #666;
}
.top li a {
  float: left;
  text-decoration: none;
  color: #fff;
}
.top>li:hover {
  background: #ff9b38;
  background: -moz-linear-gradient(top, #ff9b38 0%, #ff9123 50%, #ff8419 51%, #ff9b38 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff9b38), color-stop(50%,#ff9123), color-stop(51%,#ff8419), color-stop(100%,#ff9b38));
  background: -o-linear-gradient(top, #ff9b38 0%,#ff9123 50%,#ff8419 51%,#ff9b38 100%);
  background: -ms-linear-gradient(top, #ff9b38 0%,#ff9123 50%,#ff8419 51%,#ff9b38 100%);
  background: linear-gradient(top, #ff9b38 0%,#ff9123 50%,#ff8419 51%,#ff9b38 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9b38', endColorstr='#ff9b38',GradientType=0 );
  box-shadow: 1px 1px 0 #ffd78b inset;
}
.top>li a:hover {
  color: #a0522d;
  text-shadow: 0 -1px 1px #ddd;
}
.submenu {
  position: absolute;
  top: 2.6em;
  left: 1px;
  z-index: 5;
  color: #fff;
  background-color: #ff9b38;
  text-align: left;
  padding: 0.5em 0 1em 0.5em;
  float: left;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  box-shadow: 5px 5px 7px #777;
  display: none;
}
.submenu ul {
  float: left;
}
.submenu li {
  width: 100%;
  border: none;
  height: 1.5em;
  margin-left: 1.5em;
  list-style-image: url(../img/whitearrow.gif);
  box-shadow: none;
}
.submenu .noitem {
  list-style: none;
}
.submenu .subsection {
  list-style: none;
  margin: 0;
  font-weight: bold;
}
.no-generatedcontent .submenu li {
  list-style-type: circle;
}
.submenu li a {
  float: none;
  text-indent: 0;
  height: auto;
  display: block;
}
.organization .submenu ul {
  width: 9em;
}
.list .submenu ul {
  width: 11em;
}
.register .submenu ul {
  width: 8em;
}
.data .submenu ul {
  width: 13em;
}

/* footer -------------------------------------------------------------------*/
footer {
  clear: both;
  position: fixed;
  bottom: 0;
  left: 0;
  background: #222;
  height: 2em; /* for IE */
  min-height: 2em; /* for not-IE */
  line-height: 2em;
  width: 100%;
  color: #fff;
}
footer address {
  float:left;
  padding-left: 2em;
  font-style: normal;
}
footer address:before {
  content: url(../img/whitebox.gif);
}
footer p {
  text-align: right;
  padding: 0 20px 0 0;
}
footer a {
  text-decoration: none;
}
footer a, footer a:visited {
  color: #fff;
}
footer a:hover {
  color: #e99;
}

/* breadcrumb -------------------------------------------------------------- */
.breadcrumb {
  margin: 0 0 1em 0;
  background: #fff;
  border-width: 1px;
  border-style: none;
  border-color: #f5f5f5 #e5e5e5 #ccc;
  overflow: hidden;
  width: 100%;
}
/*.breadcrumb ul {
  padding: 0;
  list-style: none;
}*/
.breadcrumb li {
  float: left;
}
.breadcrumb a {
  padding: .3em 1em .3em 2em;
  float: left;
  text-decoration: none;
  color: #444;
  position: relative;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  background: rgb(255,255,255); /* Old browsers */
  background: -moz-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(229,229,229,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(229,229,229,1))); /* Chrome,Safari4+ */
  background: -o-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(left, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* IE10+ */
  background: linear-gradient(left, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=1 ); /* IE6-9 */
}
.breadcrumb li:first-child a{
  padding-left: 1em;
}
.breadcrumb a:hover {
  background: #fff;
}
.breadcrumb a::after, .breadcrumb a::before {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -1.5em;
  border-top: 1.5em solid transparent;
  border-bottom: 1.5em solid transparent;
  border-left: 1em solid;
  right: -1em;
}
.breadcrumb a::after {
  z-index: 2;
  border-left-color: #e5e5e5;
}
.breadcrumb a::before {
  border-left-color: #ccc;
  right: -1.1em;
  z-index: 1;
}
.breadcrumb a:hover::after {
  border-left-color: #fff;
}
.breadcrumb .current, .breadcrumb .current:hover {
  font-weight: bold;
  background: none;
}
.breadcrumb .current::after, .breadcrumb .current::before {
  content: normal;
}

/* main -------------------------------------------------------------------- */
.main {
  width: 100%;
  max-width: 940px;
  min-width: 720px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.5;
  padding-bottom: 2.5em;
  background-color: #fff;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: #ddd 1px solid;
}
.no-generatedcontent .main {
  margin: 0 auto;
}
.main .breadcrumb ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main article {
  margin: 0 1.5em;
}

.main h1 {
  font-size: larger;
  font-weight: bold;
  margin: 1em 0 0.5em 0;
  padding-left: 0.5em;
  color: #00008b; /* darkblue */
  border-left: 5px solid #306;
  border-bottom: 1px solid #306;
  text-decoration: none;
}
.main h1.group {
  border-bottom: none;
  margin-bottom: 0;
}
h1.group+h1 {
  margin-top: 0;
}

.main h2 {
  font-weight: bold;
  font-size: 100%;
  text-decoration: underline;
  margin:0.5em 0 0 1.5em;
  color: #063;
}
.main h3{
  font-size: 100%;
  margin-left: 2em;
}
.main p {
  margin-left: 2.5em;
}
/*.main p+dl, .main p+ul, .main p+ol {
  margin-left: 3.5em;
}*/
.main dl {
  margin-left: 2.5em;
}
.main dt {
  float: left;
  padding-right: 0.5em;
}
.main ul {
  margin-left: 2.5em;
}
.main ol {
  margin-left: 4.5em;
}
.main ul ul, .main ol ul,  .main ul dl, .main ol ol {
  margin-left: 1em;
}
.main ul ol {
  margin-left: 2em;
}
.main ul p, .main ol p {
  margin-left: 1em;
}

.main table {
  margin-left: 3em;
  margin-bottom: 1em;
}
.main img {
  margin-left: 4em;
}
.main img.embed {
  margin: 0;
}
.main address {
  padding: 0 0 2em 4em;
}
.main address>img {
  margin: 0;
}
.main .caption {
  padding: 0 2em 1em 5em;
}
.main .question {
  padding-left: 0em;
}
.main dl.memberlist {
  margin: 0.5em 0 0.5em 2em;
}
.main dl.memberlist dd {
  margin-left: 7em;
}

.main th, .main td {
  padding: 0.2em 1em;
}

/* For English pages ----------------------------------------------------------------- */
.en dl.memberlist {
  margin: 0.5em 0 0.5em 2.5em;
}
.en dl.memberlist dd {
  margin-left: 15em;
}

.en.essay p {
  margin: 0.5em 0 1.5em 1.5em;
  text-indent: 0;  
}
.en.answer p {
  margin: 0.5em 0 0.5em 2.5em;
}
.en.answer h3+p {
  margin-top: 0;
}

/* Other classes ----------------------------------------------------------------- */
.essay p {
  margin: 0.5em 0 0.5em 1.5em;
  text-indent: 1em;
}

.whatsnew dl {
  margin: 0.5em 0 0 1.5em;
}
.whatsnew dt {
  float: left;
  width: 7em;
  border-left: 3px solid #999;
  padding-left: 3px;
}
.whatsnew dd {
  margin-left: 7em;
  padding-bottom: 4px;
}

.gotomenu, .sitemap {
  padding: 0.5em 0.5em 0 0;
  text-align: right;
}

.disc>li {
  list-style-type: disc;
  list-style-position: outside;
  margin-left: 1.5em;
}
.circle>li {
  list-style-type: circle;
  list-style-position: outside;
  margin-left: 1.5em;
}
.square>li {
  list-style-type: square;
  list-style-position: outside;
  margin-left: 1.5em;
}
.alphabet>li {
  list-style-type: lower-alpha;
  list-style-position: outside;
  margin-left: 1em;
}

.footnote {
  font-size: smaller;
}

.soundlink:before {
  content: url(../img/speaker.svg);
}

.exlink:after {
  content: url("../img/exlink.svg");
}

.new:after {
  content: url("../img/new.gif");  
}

.update:after {
  content: url("../img/update.png");  
}

.atr216, .etl492, .tm212, .tm3285 {
  float: left;
  margin: 1em 0 1.5em 3em;
  empty-cells: show;
}
.atr216 th {
  width: 2em;
  text-align: right;
}
.atr216 td {
  width: 10em;
}
.etl492 td {
  width: 17em;
}
.tm212 th, .tm3285 th {
  width: 3em;
  text-align: right;
}
.tm212 td, .tm3285 td {
  width: 11.5em;
}
.jeita4001 {
  border: #aaa 1px solid;
}
.jeita4001 th {
  text-align: center;
  border-left: #aaa 1px solid;
  border-right: #aaa 1px solid;
}
.jeita4001 td {
  text-align: center;
  border-left: #aaa 1px solid;
  border-right: #aaa 1px solid;
  border-top: none;
  border-bottom: none;
  width: 8em;
}
.jeita4001 tr {
  border-top: #aaa 1px solid;
  border-bottom: none;
}
.jeita4001 tr.ruby {
  border-top: none;
  border-bottom: #aaa 1px solid;
}

.shipping {
  float: left;
  margin: 1em;
}

.question ul {
  padding-left: 0;
}
.answer h2 {
/*  padding-top: 0;*/
margin-bottom: 1em;
padding-left: 0.5em;
  border-left: 10px solid #c06;
  border-bottom: 1px solid #c06;
  color: #000;
  text-decoration: none;
}
.answer h3 {
/*  margin: 1em 0 0.5em -1em;
  padding: 0.5em 0 0 0.5em;*/
  margin: 2em 0 1em 2em;
  padding: 0;
  border-bottom: 1px solid #c66;
  color: #000;
  text-decoration: none;
}
.answer h2+h3 {
  margin-top: 0;
}
.answer ol>li>ul {
  margin-left: 0em;
}
.answer ol>li>ol {
  margin-left: 2em;
}
.answer ul>li>ol {
  margin-left: 3em;
}

.centering {
  text-align: center;
}
.clearboth {
  clear: both;
}

.boxflow p {
  padding-bottom: 0;
}
.boxflow ul {
  margin-left: 2em;
}
.boxflow ol.flow {
  width: 77%;
  margin-top: 1em;
  list-style: decimal inside;
}
.boxflow ol.flow li {
  margin-bottom: 12px;
  padding-bottom: 28px;
  background: url(../img/flow.gif) no-repeat center bottom;
}
.boxflow ol.flow li.last {
  margin-bottom: 0;
  padding-bottom: 2em;
  background-image: none;
}
.boxflow ol.flow dl {
  margin: 0;
}
.boxflow ol.flow dt {
  float: none;
  padding: 9px 10px 7px;
  background: -webkit-linear-gradient(-90deg, #f96, #fcc);
  background: -moz-linear-gradient(-90deg, #f96, #fcc);
  filter:  progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ff9966', endColorstr='#ffcccc');
  border: 1px #c0c0c0 solid;
  border-bottom: 0;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  font-weight: bold;
  color: #333;
}
.boxflow ol.flow dd {
  margin: 0;
  padding: 1em 1em;
background: #fff;
border: 1px #c0c0c0 solid;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
}
.boxflow ul.noflow {
  list-style: square outside;
  margin-bottom: 1em;
}
.boxflow ul.noflow li {
  margin: 0;
  padding: 0;
  background-image: none;
}
.boxflow dl.noflow dt {
  margin: 0;
  padding: 0;
  border: none;
  background: #fff;
  float: left;
}
.boxflow dl.noflow dd {
  margin: 0;
  padding: 0 0 0 4.5em;
  border: none;
}

.catalogue .alphabet>li {
  margin-left: 2em;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
/*
        background: transparent !important;
*/
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

/*
    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }
*/

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }
    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
