/* reset */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;}
body {line-height:1;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
display:block;}
nav ul {list-style:none;}
blockquote, q {quotes:none;}
blockquote:before, blockquote:after,q:before, q:after {content:'';content:none;}
a {margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent;}
table {border-collapse:collapse;border-spacing:0;}

/*全体レイアウト*/
* {
  box-sizing: border-box;
  line-height: 1.5;
}
body{
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
  font-family: ”ヒラギノ角ゴ Pro W3”,”Hiragino Kaku Gothic Pro”,sans-serif;
  background-image: url(../img/bg.png);
  background-position: top;
  background-repeat: repeat-y;
  background-size: 100% auto;
}
  @media screen and (orientation: portrait) {
    html{
      min-width: 550px;
    }
  }
.hidden{
  display: none !important;
}
.hidden a{
  display: none !important;
}
#content{
  width: 550px;
  margin: 1em auto;
}

/*タブ*/
#news-category li{
  padding: 1px 0;
  display: inline-block;
  width: 21%;
  margin: 0 2% 0 2%;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  word-break : keep-all;
  /*Other Browser*/
  background: #e1e6ee;
  /*For Old WebKit*/
  background: -webkit-linear-gradient(#f7f7f7 0%, #c0ccdd 97%, #7d8aa8 98%,#7d8aa8 100%);
  /*For Modern Browser*/
  background: linear-gradient(#f7f7f7 0%, #c0ccdd 97%, #7d8aa8 98%, #7d8aa8 100%);
  border-radius: 7px;
  border:2px solid #4c4c4c;
  box-shadow: 0px 0px 0px 3px rgba(61, 61, 61, 0.3);
}
  #news-category li a{
    padding: 1px 0;
    margin: 0 2% 0 2%;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    display: block;
    font-weight: bold;
    color: #373e4a;
  }
#news-category li.active{
  /*Other Browser*/
  background: #7c93c9;
  /*For Old WebKit*/
  background: -webkit-linear-gradient(#474f68 0%, #474f68 2%, #8b8e98 4%, #80b7f9 100%);
  /*For Modern Browser*/
  background: linear-gradient(#474f68 0%, #474f68 2%, #8b8e98 4%, #80b7f9 100%);
  border-radius: 7px;
  border: 2px solid #363a42;
  border-bottom: 2px solid #3c70f4;
  box-shadow: 0px 0px 0px 3px rgba(61, 61, 61, 0.3);
}
  #news-category li.active span{
    text-shadow: 1px 1px 1px #4c4c4c,
      -1px 1px 1px #4c4c4c,
      1px -1px 1px #4c4c4c,
      -1px -1px 1px #4c4c4c;  
    margin: 0;
    display: inline-block;
    position:relative;
    color:#fefeff;
  }
  #news-category li.active span:before {
    position:absolute;
    display:block;
    content:attr(title);
    color:#cfe4ff;
    mask-image:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0) 40%, rgba(0,0,0,1) 80%, rgba(0,0,0,1));
    -webkit-mask-image:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0) 40%, rgba(0,0,0,1) 80%, rgba(0,0,0,1));
  }
  /*新着アラートバッジ*/  
  #news-category span.badge{
    color: #fff;
    text-align: center;
    text-shadow: none;
    display: inline-block;
    position: absolute;
    background-image: url(../img/alart_icon.png);
    background-size: cover;
    width: 30px;
    height: 30px;
    padding: 6px 0;
    font-size: 0.7rem;
    margin-left: -25px;
    margin-top: -12px;
  }

/*ニュース一覧*/
#news-list{
  background: rgba(247,252,255,0.8);
  border: 1px solid rgba(136,141,160,0.8);
  border-radius: 7px;
  padding: 12px;
  padding-top: 2px;
  list-style: none; 
  margin: 1em 0;
}
#news-list li{
  display: block;
  font-size: 0.85rem;
  /*Other Browser*/
  background: #e1e6ee;
  /*For Old WebKit*/
  background: -webkit-linear-gradient(#f7fcff 0%, #c8cedc 96%, #9da8c3 98%, #9da8c3 100%);
  /*For Modern Browser*/
  background: linear-gradient(#f7fcff 0%, #c8cedc 96%, #9da8c3 98%, #9da8c3 100%);
  border-radius: 7px;
  border:2px solid #797e91;
  text-align: center;
}
  /*新着*/
  .new:before{
    content: "";
    display: block;
    position: absolute;
    background-image: url(../img/detail_new.png);
    background-repeat: no-repeat;
    background-size: 135px 40px;
    background-position: 0px;
    width: 135px;
    height: 40px;
    margin-top: -20px;
    margin-left: -15px;
  }
  #news-list .new:before{
    background-image: url(../img/list_new.png);
    background-repeat: no-repeat;
    background-size: 118px 35px;
    background-position: 0px;
    width: 118px;
    height: 35px;
    margin-top: -11px;
    margin-left: -6px;
  }
  #news-list li{
    margin-top: 10px;
  }
  #news-list li a{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    display: block;
    font-weight: bold;
    color: #373e4a;
    background-repeat: no-repeat;
    background-size: 84px 18px;
    background-position: 6px center;
    padding: 6px;
    padding-left: 96px;
    text-align: left;
  }
  body.jp #news-list li[cat="news"] a{
    background-image: url(../img/news/cat_news.png);
  }
  body.jp #news-list li[cat="important"] a{
    background-image: url(../img/news/cat_important.png);
  }
  body.jp #news-list li[cat="maintenance"] a{
    background-image: url(../img/news/cat_maintenance.png);
  }
  body.tw #news-list li[cat="news"] a{
    background-image: url(../img/news/tw/cat_news.png);
  }
  body.tw #news-list li[cat="important"] a{
    background-image: url(../img/news/tw/cat_important.png);
  }
  body.tw #news-list li[cat="maintenance"] a{
    background-image: url(../img/news/tw/cat_maintenance.png);
  }
  body.hk #news-list li[cat="news"] a{
    background-image: url(../img/news/hk/cat_news.png);
  }
  body.hk #news-list li[cat="important"] a{
    background-image: url(../img/news/hk/cat_important.png);
  }
  body.hk #news-list li[cat="maintenance"] a{
    background-image: url(../img/news/hk/cat_maintenance.png);
  }
  /*日付*/
  #news-list li a span{
    font-weight: normal;
    color: #424a57;
    font-size: 0.8rem;
    padding-right: 5px;
  }
  /*バナー*/
  #news-list li.banner a{
    background-position: 147px 7px;
    padding-left: 0;
  }
  #news-list li.banner a img{
    width: 137px;
    height: 47px;
    float: left;
    margin-right: 5px;
    margin-left: 5px;
  }
  #news-list li.banner span{
    padding-right: 0;
    padding-left: 90px;
  }
  #news-list li.banner span:after{
    display: block;
    content: "";
    padding-bottom: 5px;
  }

/*ページネーション*/
#pager{
  width: 40%;
  margin: 15px auto 0 auto;
}
  #pager a{
    display: block;
    background-image: url(../img/arrow.png);
    background-repeat: no-repeat;
    background-size: 16px 23px;
    width: 16px;
    height: 23px;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
  }
  #before{
    float: left;
  }
  #after{
    float: right;    
    transform: scale(-1, 1);
  }
  #pager div{
    display: block;
    width: 60%;
    margin: 0 auto;
    color: #fff;
    background: #5a5b5c;
    border-radius: 5px;
    text-align: center;
    text-shadow: 1px 1px #000;
  }

/*ニュース詳細*/
#detail{
  background: rgba(247,252,255,0.8);
  border: 1px solid rgba(136,141,160,0.8);
  border-radius: 7px;
  padding: 9px;
  margin: 1em auto;
}
  #title{
    text-decoration: none;
    display: block;
    font-weight: bold;
    background-repeat: no-repeat;
    background-size: 84px 18px;
    background-position: 70px 0px;
    margin-bottom: 5px;
  }
  body.jp #title[cat="news"]{
    background-image: url(../img/news/cat_news.png);
  }
  body.jp #title[cat="important"]{
    background-image: url(../img/news/cat_important.png);
  }
  body.jp #title[cat="maintenance"]{
    background-image: url(../img/news/cat_maintenance.png);
  }
  body.tw #title[cat="news"]{
    background-image: url(../img/news/tw/cat_news.png);
  }
  body.tw #title[cat="important"]{
    background-image: url(../img/news/tw/cat_important.png);
  }
  body.tw #title[cat="maintenance"]{
    background-image: url(../img/news/tw/cat_maintenance.png);
  }
  body.hk #title[cat="news"]{
    background-image: url(../img/news/hk/cat_news.png);
  }
  body.hk #title[cat="important"]{
    background-image: url(../img/news/hk/cat_important.png);
  }
  body.hk #title[cat="maintenance"]{
    background-image: url(../img/news/hk/cat_maintenance.png);
  }
  body.jp a.back {
    background-image: url(../img/news/btn_back.png);
  }
  body.tw a.back {
    background-image: url(../img/news/tw/btn_back.png);
  }
  body.hk a.back {
    background-image: url(../img/news/hk/btn_back.png);
  }
  a.back{
    display: block;
    background-repeat: no-repeat;
    background-size: 63px 39px;
    width: 63px;
    height: 39px;
    overflow: hidden;
    text-indent: 100%;
    margin:3px 0;
    white-space: nowrap;
    float: left;
  }
  #title time{
    display: block;
    margin-left: 160px;
    font-weight: normal;
    color: #424a57;
    font-size: 0.9rem;
  }
  #title h1{
    width: 100%;
    display: block; 
    font-size: 1rem;
    margin: 0;
    padding-left: 72px;
    color: #373e4a;
    padding-top: 1.3rem;
  }
  #title time+h1{
    padding-top: 0;
  }
  @media (max-width: 568px) {
    #title h1{
      font-size:0.9rem;
    }
  }
.button{
  text-align: center;
  margin: 15px auto 15px auto;
}
  .button a{
    display: block;
    margin: auto;
    width: 28%;
    padding:5px 0;
    text-decoration: none;
    color: #0b1a4a;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 2px 2px 1px #fff,
      -2px 2px 1px #fff,
      2px -2px 1px #fff,
      -2px -2px 1px #fff;  
    /*Other Browser*/
    background: #e1e6ee;
    /*For Old WebKit*/
    background: -webkit-linear-gradient(#ffffff 0%, #ffffff 50%, #dfdfdf 51%, #f6f6f6 100%);
    /*For Modern Browser*/
    background: linear-gradient(#ffffff 0%, #ffffff 50%, #dfdfdf 51%, #f6f6f6 100%);
    border-radius: 7px;
    border:2px solid #a6a5a3;
    box-shadow: 0 3px 2px rgba(80,80,80,0.9), 0 0 0 1px #fff inset;
  }
