/*
Theme Name: iwj2016
Author: itaru watanave
*/

@import url('css/bootstrap.min.css');
@import url(https://fonts.googleapis.com/css?family=Satisfy);
@import url(https://fonts.googleapis.com/earlyaccess/notosansjp.css);
/* 9panel */
@import url(https://iwj.co.jp/base/wp-content/themes/iwj_site/assets/css/grid.css);
body { padding-top: 70px; }

body {
  font-family: Helvetica, Arial, ヒラギノ角ゴ Pro W3, Hiragino Kaku Gothic Pro, メイリオ, Meiryo, sans-serif;
  font-size: 155%;
  line-height: 1.5em;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  line-height: 1.3;
}

img {
  max-width: 100%;
  height: auto;
}

.navbar-inverse .navbar-nav > li.login > a {
	border-radius: 2px;
	color: #ffffff;
	background-color: #1c99d4;
	padding: 5px 24px;
	margin: 10px 2px;
}

.navbar-inverse .navbar-nav > li.regist > a {
	border-radius: 2px;
	color: #ffffff;
	background-color: #cc0000;
	padding: 5px 24px;
	margin: 10px 2px;
}

textarea {
  overflow: auto;
  width: 100%;
}

footer {
	background-color: #222222;
	color: #eeeeee;
}

div.invite, div.campaign {
  background: #fffbe4;
  border: 1px solid #dddddd;
  border-radius: 3px;
  padding: 12px;
  margin: 20px 0;
  display: inline-block;
  width: 100%;
}

div#related_post,
div#tag_list {
  display: block;
  float: left;
  width: 100%;
}

body.search-results p.thumbnail-box {
  float: left;
}
body.search-results p.thumbnail-box img {
  height: 75px;
  width: 75px;
  margin: 0 10px 0 0;
}
body.search-results p.title {
  display: inline;
}
body.search-results p.postinfo {
  display: inline;
  color: #aaaaaa;
}

body.page .post-inner-content {
  padding: 45px 15px;
}

p {
  margin: 0 0 1.5em 0;
}

blockquote {
  font-size: 14.5px;
}

.attention-light {
  color: #ba0d28;
}

div.wp-caption {
  border: none;
}
div.content {
  width: 100%;
display: inline-block;
}
div.content figcaption {
  font-size: 14px;
}
div.content div.signature {
  text-align: right;
  margin-bottom: 1.5em;
}
div.content div.content_detail {
  background-color: #eeeeee;
  margin: 0 0 6px 0;
}
div.content div.content_detail .movie {
  border-radius: 2px;
  color: #ffffff;
  background-color: #3366ff;
  margin: 0 2px;
  padding: 2px 12px;
}
div.content div.content_detail .text {
  border-radius: 2px;
  color: #ffffff;
  background-color: #cc0000;
  margin: 0 2px;
  padding: 2px 12px;
}
div.content div.content_detail .original {
  border-radius: 2px;
  color: #ffffff;
  background-color: #339900;
  margin: 0 2px;
  padding: 2px 12px;
}
div.content div.content_detail .books {
  border-radius: 2px;
  color: #ffffff;
  background-color: #ff8d00;
  margin: 0 2px;
  padding: 2px 12px;
}
div.content div.content_detail .date,
div.content div.content_detail .area {
  background-color: #cccccc;
  margin: 0 2px 0 0;
  padding: 2px 0 2px 12px;
}

div.content div#related_post h3,
div.content div#tag_list h3 {
  border-bottom: 1px solid #666666;
  padding: 0 0 0 10px;
}

/* 2018/03/29 add embedのセンタリング・スマホ対応 */
div.content div.text iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}


/*** 固定ページ・特集用CSS ***/
/* 目次・小見出し（共通） */
body.page-template-default div.contents div#index,
body.page-template-page-feature div.contents div#index {
  background-color: #eee;
  border-top: solid 1px #ccc;
  border-left: solid 1px #ccc;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.15);
  padding: 15px 10px 10px 20px;
  margin-bottom: 30px;
}
body.page-template-default div.contents div#index p,
body.page-template-page-feature div.contents div#index p {
  border-bottom: dashed 1px #ccc;
  display: block;
  font-weight: bold;
  margin: 0 0 10px 0;
}
body.page-template-default div.contents div#index ol, div#index ul {
  margin: 0 0 10px -10px;
}
body.page-template-default div.contents h3,
body.page-template-page-feature div.contents h3 {
  margin-top: 50px;
  background-color: #eee;
  border-top: solid 1px #ccc;
  border-left: solid 8px #ccc;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.15);
  padding: 5px 5px 5px 10px;
}

/* iwjlink2用 */
div.contents div.iwjlink2 {
  background: #fffcf3;
  border: 1px solid #dddddd;
  border-radius: 3px;
  padding: 12px;
  margin: 20px 0 20px 0;
}
div.contents div.iwjlink2 div.media div.media_image {
  float: left;
}
div.contents div.iwjlink2 div.media div.media_image img {
  display: block;
  margin: 0 15px 15px 0;
}
@media screen and (max-width: 480px) {
  /* 表示領域が480px以下、スマホ用にfloat解除 */
  div.contents div.iwjlink2 div.media div.media_image {
    float: none;
  }
  div.contents div.iwjlink2 div.media div.media_image img {
    margin: 0 auto 10px;
  }
}

/* page-feature.php用 */
div#wj-feature {
  margin-bottom: 50px;
}
.wj-feature p {
  margin: 0;
}
.wj-feature div.content {
  border-bottom: 1px solid #eee;
  padding: 10px 0 8px 0;
}
.wj-feature div.content div.content_detail {
  margin: 0 0 5px 0;
}
.wj-feature p.thumbnail-box {
  float: left;
  margin: 0 10px 2px 0;
}
.wj-feature p.thumbnail-box img {
  width: 150px;
  height: auto;
}
.wj-feature p.title {
  line-height: 1.3;
  font-size: 105%;
}


/*** 通常投稿用デザイン ***/
div.content h3 {
  border-left: 8px solid #666666;
  border-bottom: 1px solid #666666;
  padding: 0 0 0 10px;
  margin-top: 0;
}
div.content h4 {
  border-left: 8px solid #888888;
  padding: 6px 0 6px 10px;
}
div.content ul {
  margin: 1.5em 0 1.5em 0;
}
div.content ul.info {
  margin-bottom: 1.5em;
}
div.content ul.program {
  margin-bottom: 1.5em;
}
div.content ol {
  margin: 1.5em 0 1.5em 0;
}
div.content div#index {
  background-color: #f4f4f4;
  border-top: dashed 1px #dddddd;
  border-bottom: dashed 1px #dddddd;
  margin-bottom: 10px;
  padding: 15px 10px 10px 30px;
}
div.content div#index p {
  border-bottom: solid 1px #dddddd;
  display: block;
  font-weight: bold;
}
div.content div#index ul li {
  list-style: square;
}
div.content div.timestamps {
  font-size: 14px;
  margin-bottom: 1em;
}
div.content div.tgtr_embd {
  margin-bottom: 1em;
}
div.content div.image {
  text-align: center;
}
/* 表示領域が481x以上。スマホ記事一覧回り込み対策 */
@media screen and (min-width: 481px) {
  div.content div.image {
    float: left;
  }
}
div.content div.image img {
  margin: 0 15px 15px 0;
}
div.content div#movie {
  display: block;
  margin: auto;
  max-width: 640px;
}
div.content h2 span {
  padding-left: 1em;
}
div.content a.read-more {
  display: block;
  border-radius: 2px;
  color: #ffffff;
  background-color: #cc0000;
  float: left;
  padding: 2px 22px;
}
div.content img {
  max-width: 100%;
  height: auto;
}

div.membershortcut a.member{
  border-radius: 2px;
  background: #3366cc;
  color: #FFFFFF;
  display: block;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
}

div.membershortcut a.fellow{
  border-radius: 2px;
  background: #339900;
  color: #FFFFFF;
  display: block;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
}

body.home div.article div.image {
	text-align: center;
}

div.read-more {
  float: right;
}

div.read-more a.read-more {
  display: block;
  border-radius: 2px;
  color: #ffffff;
  background-color: #cc0000;
  float: left;
  padding: 2px 22px;
  margin-left: 2px;
}

div.read-more a.member{
    display: block;
    border-radius: 2px;
    color: #ffffff;
    background-color: #3366cc;
    float: left;
    padding: 2px 22px;
}

div.read-more a.fellow{
    display: block;
    border-radius: 2px;
    color: #ffffff;
    background-color: #339900;
    float: left;
    padding: 2px 22px;
}

div.invite,
div.campaign {
  background: #FFFBE4;
  border: 1px solid #dddddd;
  border-radius: 3px;
  padding: 12px;
  margin: 20px 0 20px 0;
  overflow:hidden;
}
div.invite a.member {
  border-radius: 2px;
  background: #3366cc;
  color: #FFFFFF;
  display: block;
  float: left;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
  width: 49%;
}
div.invite a.join {
  border-radius: 2px;
  background: #cc3333;
  color: #FFFFFF;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
}
div.invite a.ondemand {
  border-radius: 2px;
  background: #ffa442;
  color: #FFFFFF;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
}
div.invite p {
  margin: 0px;
}
div.invite a.memberBuy {
  border-radius: 2px;
  background: #ffcc99;
  color: #222222;
  display: block;
  float: left;
  line-height: 1.8em;
  margin: 0px 0px 6px 0px;
  padding: 4px 8px;
  text-align: center;
  width: 100%;
}
div.invite a.memberR {
  border-radius: 2px;
  background: #3366cc;
  color: #FFFFFF;
  display: block;
  float: right;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
  width: 49%;
}
div.invite a.fellow {
  border-radius: 2px;
  background: #339900;
  color: #FFFFFF;
  display: block;
  float: left;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
  width: 49%;
}
div.invite a.regist {
  border-radius: 2px;
  background: #cc3333;
  color: #FFFFFF;
  display: block;
  float: right;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
  width: 49%;
}
div.invite a.registC {
  border-radius: 2px;
  background: #cc3333;
  color: #FFFFFF;
  display: block;
  float: right;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
  width: 100%;
}
div.invite a.buy {
  background: #ffcc99;
  border-radius: 2px;
  clear: both;
  color: #222222;
  display: block;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 0px;
  text-align: center;
  width: 100%;
}
div.invite span {
  display: block;
  text-align: center;
}

div.campaign p {
  margin: 0px;
}
div.campaign a.regist {
  border-radius: 2px;
  background: #cc3333;
  color: #FFFFFF;
  display: block;
  float: left;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
  width: 49%;
}
div.campaign a.donation {
  border-radius: 2px;
  background: #cc3333;
  color: #FFFFFF;
  display: block;
  float: right;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
  width: 49%;
}
div.campaign a.donation2 {
  border-radius: 2px;
  background: #cc3333;
  color: #FFFFFF;
  display: block;
  float: right;
  line-height: 1.8em;
  margin: 6px 0px;
  padding: 4px 8px;
  text-align: center;
  width: 100%;
}

/* 201804 add 関連記事上にhistory.backボタンなど追加 */
div#sub-navi {
  overflow: hidden;
}
div#sub-navi>div {
  width: 49.8%;
  text-align: center;
  border: 1px solid #ddd;
  background-color: #fffbe4;
  padding: 5px 2px;
  margin-bottom: 1px;
  font-size: 97%;
}
div#sub-navi>div.prev {
  float: left;
  border-left: 7px solid #ddd;
  border-radius: 15px 3px 3px 15px / 15px 3px 3px 15px;
}
div#sub-navi>div.List {
  float: right;
  border-radius: 3px;
  margin-bottom: 50px;
}

div#related_post ul {
  clear: both;
  float: left;
  list-style-type: none;
  padding-left: 0;
}
div#related_post ul li {
  clear: both;
  float: left;
  list-style-type: none;
}
div#related_post p.thumbnail-box {
  float: left;
}
div#related_post p.thumbnail-box img {
  height: 75px;
  width: 75px;
  margin: 0 10px 0 0;
}
div#related_post p.title {
  display: inline;
}
div#related_post p.postinfo {
  color: #aaaaaa;
  display: inline;
}

div#tag_list ul {
  padding-left: 0;
}
div#tag_list ul li {
  background: #e8eef7;
  border: solid 1px #dddddd;
  border-radius: 2px;
  clear: both;
  display: inline;
  line-height: 1.8em;
  margin: 0 1px;
  padding: 2px 10px;
  text-align: center;
}

div#comments {
  display: block;
}
div#supportus {
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  padding: 10px 0;
  margin: 40px auto;
  overflow: hidden;
}
div#supportus img {
  max-width: 100%;
  height: auto;
}

ul.pagination li span.current {
    color: #ffffff;
    background-color: #cc0000;
}

div #social {
  margin-bottom: 1.5em;
}
div #social .fb_iframe_widget > span {
  vertical-align: baseline !important;
}

.wp-caption .wp-caption-text {
  text-align: left;
}
.wp-caption img {
  margin-right: auto;
  margin-left: auto;
}

.u-line {
  text-decoration: underline;
}

.align-c {
  text-align: center;
}

.align-r {
  text-align: right;
}

.attention-2-light {
  color: #0a6430;
  font-weight: normal;
}

.attention-2 {
  color: #0a6430;
  font-weight: bold;
}

.box-single {
  padding: 0 10px 10px;
  margin: 0 10px 20px;
  background-color: #eceae3;
  border: solid 1px #aaaaaa;
}

.box-read {
  padding: 0 20px 5px;
  margin: 0;
  background-color: #dbd7c7;
  overflow: hidden;
  box-shadow: 1px 2px 0 0 #aaaaaa;
  border: 1px solid #cccccc;
}
.box-read img {
  float: left;
  margin: 7px 20px 5px 0;
  border: 1px solid #666666;
}
.box-read p {
  line-height: 1.5;
  margin-bottom: 1.1em;
  font-size: 123.1%;
}
.box-read ul.index li {
  font-size: 14px;
}

.box-title {
  margin: 0;
  padding: 0 20px;
}
.box-title a {
  color: #222;
  font-weight: bold;
  font-size: 127%;
  padding-bottom: 15px;
}
.box-title p {
  margin: 1.0em 0;
}
.box-title img {
  width: 320px;
  margin: 10px 0 0 30px;
  border: 1px solid #666666;
}

div.blog-sidebar div.sidebar-inner {
  padding: 15px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #f5f5f5;
  margin-bottom: 10px;
}

.twitter-tweet {
  margin: auto;
}

ul.info {
  border-top: 1px dotted #cccccc;
  border-bottom: 1px dotted #cccccc;
  padding: 10px 0 10px 25px;
  margin: 0 20px;
  list-style-type: circle;
  font-size: 14px;
}

nav.navigation {
  display: block;
}

.thumbnail .caption {
  text-align: left;
}

.btn.btn-default {
  color: #333333;
}

.box-container h4 {
  background-color: #e8dfe4;
  padding: 5px 0;
  font-size: 190%;
}

.box-single-hl .box-title a {
  color: #ba0d28;
}

.sidebar-inner .metaslider,
.sidebar-inner .widget {
  display: block;
  margin: 0px 0px 10px 0px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
}

.space-between {
    justify-content: space-between;
}

.youtube,
.vimeo,
.ustream, 
.twitcasting {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 640px;
}
.youtube iframe,
.vimeo iframe,
.ustream iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#grid {
  margin-top: 20px;
}

#grid .col-sm-4, #grid .col-xs-4 {
  padding: initial;
}

iframe {
  width: 100%;
}

.ninepanel {
  margin: 0 -12px 0 -12px;
}

/* 20180406 add 記事一覧リンクボタンなど追加 */
div#heading {
  position: relative;
  background: #444;
  padding: 6px 5px 7px 10px;
  margin: 0px -12px 30px;
  height: auto;
}
div#heading>p.Title {
  font-family: 'Noto Sans JP';
  font-size: 140%;
  font-weight: 500;
  color: #fff;
  padding-top: 1px;
  margin-bottom: 0;
}
@media (min-width: 481px) {
   /* 表示領域が481px以上 */
  div#heading {
    padding: 6px 5px 5px 10px;
    height: 39px;
  }
  div#heading:after {
    position: absolute;
    content: '';
    top: 100%;
    left: 0;
    border: 20px solid transparent;
    border-top: 20px solid #444;
    width: 0;
    height: 0;
  }
  div#heading>p.Title {
    font-size: 149%;
  }
}
div.List-button {
  border-radius: 10px;
  background-color: #cc0000;
  padding: 5px;
  margin: 12px auto 10px;
  text-align: center;
}
div.List-button>a {
  color: #fff;
}
div.Bottom-button {
  margin: 40px auto 60px;
}


/* リストカレンダー表示 */

p.nextback{
  padding:0;
  margin:15px;
  text-align:center;
}
p.link_prev{
  padding:0;
  margin:15px 0 -23px;
  float:left;
  font-size:0.9em;
}
p.link_next{
  padding:0;
  margin:15px 0 -23px;
  float:right;
  font-size:0.9em;
}
table.calendar_list{
  width:100%;
  border-collapse:collapse;
  border:2px solid #CCC;
}
table.calendar_list caption{
  text-align:center;
  padding:0 0 2px;
  font-weight:bold;
  font-size:1.2em;
}
table.calendar_list td{
  padding:5px;
  border-right:1px dotted #CCC;
  border-bottom:1px solid #CCC;
  text-align:center;
  width:2em;
  vertical-align:top;
}
table.calendar_list tr:nth-child(2n) td{
  background-color:#FAFAFA;
}
table.calendar_list td.sun,
table.calendar_list tr.sun td,
table.calendar_list td.holiday,
table.calendar_list tr.holiday td{
  background-color:#fff2ef;
  color:#C00;
}
table.calendar_list td.sat,
table.calendar_list tr.sat td{
  background-color:#e6f6ff;
  color:#36C;
}
table.calendar_list tr.today td{
  background-color:#fff8b9;
  font-weight:bold;
}
table.calendar_list td.event{
  width:auto;
  text-align:left;
}
table.calendar_list td.event a{
  display:block;
  background: url(img/icon_calendar.png) no-repeat 0px -20px;
  color:#333;
  padding:2px 0 2px 23px;
  line-height:1.3;
  margin-bottom: 0.5em;
}
table.calendar_list td.event span.holiday{
  display:block;
  padding-left:23px;
  background: url(img/icon_calendar.png) no-repeat 0px 1px;
}


div.content div.page-thumb img {
  display: block;
  margin: auto;
}
div.content div#social iframe{
  display: inline;
}
