﻿@charset "shift-jis";
/* CSS Document */
body {
    font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
/* IE8~11はメイリオ */
@media screen\0 {
  body {
    font-family: 'Segoe UI', /* Windowsの欧文*/
                  Meiryo,     /* メイリオ */
                  sans-serif;
  }
}
/*ヘッダー*/
#header {
    background-color: #00244F;
    color: white;
    padding: 15px 0;
    display: flex;
    margin-bottom: 30px;
}
#header h1 {
    font-weight: 700;
    font-size: 1.9em;
    margin-bottom:0;
}
@media all and (-ms-high-contrast: none){
    #header h1 {
        margin-left:1em; /*IEのみに効かせる*/
    }
}
/*選挙区リンク*/
.page-navi div.page-navi-title {
    font-weight: 700;
    border-left: #007bff 5px solid;
}
.page-navi li > a:hover,
.page-navi li > a:focus {
    text-decoration: underline;
}
.page-navi li > a.nav-link {
    padding: .5rem .60rem;
}
/* スマホ版ヘッダー*/
@media screen and (max-width: 896px) {
#header {
    padding: 15px 0;
}
#header h1 {
    font-size: 1.2em;
   /* margin-left:2em;*/
}   
}
/*見出し*/
.page-title {
    margin-bottom: 30px;
}
.page-title h2 {
    font-weight: 700;
    padding-left: 0.5em;
    border-left: #E41616 5px solid;
}

/* スマホ版見出し*/
@media screen and (max-width: 896px) {
.page-title h2 {
    font-size: 1.3em;
}
}

/* SE版見出し*/
@media screen and (max-width: 350px) {
.page-title h2 {
    font-size: 1em;
}
}
/*更新ボタン*/
.btn-refresh {
    color: white;
    background: #E41616;
}
.btn-refresh:hover {
    background-color: #9E1212;
    color: white;
}
/*投票率と開票率*/
.vote-election {
    background-color: #EDEDED;
    padding: 1em;
}

/* SE版投票率と開票率*/
@media screen and (max-width: 350px) {
.vote-election {
    font-size: 14px;
}
}
/*スケジュール*/
.schedule h3 img {
    border: #B5B5B5 1px solid;
    margin-bottom: -25px;
}
.schedule dl {
    border: #B5B5B5 1px solid;
    padding: 10px 20px;
}
.schedule dl .last {
    padding-top: 1em;
    border-top: #B5B5B5 1px solid;
}
.schedule dl dd{
    font-size: .9em;
}
/* iPad版スケジュール・ニュース欄*/
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait){
    .schedule dl {
      padding:15px;  
    }
}
/*選挙関連ニュース欄*/
.news-list ul{
    list-style: none;
    padding-left:0;
    border: #B5B5B5 1px solid;
    padding: 0 20px;
}
.news-list li{
    font-size: .8em;
    position: relative;
}
.news-list li:not(:last-child){
   border-bottom: #B5B5B5 1px solid;  
}
.news-list a{
    color:black;
    display: block;
    padding: .7em 1em .7em 0;  
}
.news-list a:hover{
    color:#E41616;
    text-decoration: none;
}
.news-list a:after{
    content: "\e900";
    font-family: "icomoon";
    margin-right: .2rem;
    color: gray;
    position: absolute;
    font-size: 1.5em;
    top:25%;
    right:-7px;
    }
.news-list h3 {
    color:white;
    margin-bottom:0;
    font-size: 1.25em;
    background: #00244F;
    text-align: center;
    padding:.9em .5em;
}
.news-list p{
    text-align: right;
    font-size: .8em;
    margin-top:-.5em;
}
/* スマホ版 選挙関連ニュース欄*/
@media screen and (max-width: 896px){
 .news-list h3 {
    font-size: 1.3em;
    padding:.7em .5em;
}
.news-list a{
    padding: .9em 1.5em .9em 0;  
}    
}
/*立候補者テーブル*/
.item {
    width: 100%;
    border-top: #C1C1C1 1px solid;
}
.item:last-of-type {
    border-bottom: #C1C1C1 1px solid;
}
.item:nth-of-type(even) {
    background-color: #EDEDED;
}
.item td {
    padding: .5em;
}
.item tr {
    padding: 1em 0;
}
.item .name {
    font-weight: 700;
    font-size: 2em;
}
.vote span {
    font-weight: 500;
    font-size: 2em;
}
.party span {
    border-left: 1px black solid;
    padding: 0 1em;
}
.party span:last-child {
    border-right: 1px black solid;
}
/*当選ライン*/
.border-line {
    text-align: right;
    position: relative;
    width: 100%;
    border-top: solid 5px #D61616;/*top: -5px;
    bottom: 5px;*/
}
.border-line span {
    background: #D61616;
    border-radius: 3px 3px 0 0 /3px 3px 0 0;
    color: #fff;
    font-size: .85em;
    padding: 5px 0px 0 0px;
    position: absolute;
    display: inline-block;
    width: 100px;
    text-align: center;
    right: 0;
    bottom: 5px;
    z-index: 9;
}

/*SP版当選ライン*/
@media screen and (max-width: 896px) {
.border-line span {
    left: 0;
}
}

/* PC版立候補者*/
@media screen and (min-width: 897px) {
.list-wrap {
    margin-top: 20px;
}
.item td:first-child, .item td:nth-child(2) {
    width: 90px;
}
.item td:nth-child(3) {
    width: 400px;
}
.item .num {
    min-width: 90px;
    text-align: center; 
}
.item .num span {
    font-size: 40px;
    font-weight: bold; 
    }    
.vote {
    width: 200px;
}
.item .vote {
    border-left: dotted 1px #C1C1C1;
}
}

/*SP版立候補者テーブル*/
@media screen and (max-width: 896px) {
.list-wrap {
    margin-top: 20px;
    margin-bottom: 50px;
}
.item .num {
    position: absolute;
}
.item .num img {
    position: relative;
    top: 0px;
    left: 100px;
    width: 40px;
    height: 40px;
}
.item .num span {
    position: relative; 
     display: inline-block;
    text-align:center;
    top: 0px;
    left: 100px;
    font-size: 25px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #595A5B;
    color:white;
}  
.item .vote, .item td:nth-child(3) {
    display: block;
}
.item .vote {
    border-top: dotted 1px #C1C1C1;
    text-align: center;
}
.item .vote span{
     font-size: 1.6em;   
    }
.item .name {
    font-size: 1.6em;
    margin-left: 1.1em;
}
.item .party {
    margin-top: .7em;
}
}

/* SE版立候補者テーブル*/
@media screen and (max-width: 350px) {
.item .name {
    font-size: 1.4em;
    margin-left: 1em;
}
.vote span {
    font-size: 1.6em;
}
.item .vote {
    font-size: .9em;
}
.item .num img {
    position: relative;
    top: 5px;
    left: 100px;
    width: 30px;
    height: 30px;
}
.item .num span {
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 30px;
}     
}
/*ナビゲーション*/
.side-nav {
    list-style: none;
    padding-left: 0;
}
.side-nav li {
    border-radius: .2rem;
    background: #595A5B;
    width: 100%;
    margin-bottom: 10px;
}
.side-nav a {
    position: relative;
    display: block;
    color: white;
    text-decoration: none;
    padding: .5em;
}
.side-nav li:hover {
    background-color: #292929;
}
.side-nav a i {
    position: absolute;
    top: 50%;
    margin-top: -.5rem;
    right: .5rem;
}

/*SP版ナビゲーション*/
@media screen and (max-width: 896px) {
.side-nav {
    font-size: .95em;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.side-nav a {
    padding: .8em .5em;
}
.side-nav li {
    width: 48%;
}
}
/*フッダー*/
#footer {
    background-color: #595A5B;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    margin-bottom: 120px;
}

/*スマホ版*/
@media screen and (max-width: 896px) {
.sp {
    display: block;
}
.pc {
    display: none;
}
}

/*PC版*/
@media screen and (min-width: 897px) {
.sp {
    display: none;
}
.pc {
    display: block;
}
}

/*YouTube*/
.movie-wrap {
     position: relative;
     padding-bottom: 56.25%;
     height: 0;
     overflow: hidden;
     margin-bottom: 1rem;
}
 
.movie-wrap iframe {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
}


/*票数テーブル*/
.table-list {
    background: #fff;
    width: 100%;
}
.table-list td {
    padding: 10px;
    text-align: right;
}
.table-list th {
    padding: 10px;
    text-align: center;
}
.table-list tr:nth-of-type(2n) {
    background: #EDEDED;
}

/*PC版票数テーブル*/
@media screen and (min-width: 897px) {
.table-list,  .table-list th,  .table-list td {
    border: solid 1px #ccc;
}
}

/*SP版票数テーブル*/
@media screen and (max-width: 896px) {
.table-list thead {
    display: none;
}
.table-list {
    width: 100%;
    margin-bottom: 50px;
}
.table-list tbody th {
    /*display: block;*/
    text-align: center;
    width: 30%;
    background: #595A5B;
    color: white;
}
.table-list th {
    padding: 5px;
}
.table-list tr:not(th) {
    border: solid 1px #ccc;
}
.table-list td {
    padding: 7px 13px;
    border-top: solid 1px #ccc;
    display: block;
    text-align: right;
    width: 100%;
}
.table-list td:first-child {
    font-weight: bold;
    text-align: center;
}
.table-list td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;/*margin-right: 10px;*/
}
}

/* SE立候補者テーブル*/
@media screen and (max-width: 350px) {
.table-list tbody th {
    width: 35%;
}    
}