/*
Theme Name: nhikikomori
Theme URI: http://nagasaki-hikikomori.net
Description: 不登校ひきこもり情報ターミナル in ながさき
Author: nhikikomori
Author URI: http://nagasaki-hikikomori.net
Version: 1.0.0
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Template: habakiri
*/

/**
 * メッセージ
 */
.message__body {
	display: none;
	margin-top: 20px;
}
.message__body--show {
	display: block;
}

/**
 * 最新イベント
 */
.recent-events {
	background-color: #fcfbf1;
}
.recent-events__title {
	color: #ff8042;
}
.recent-event {
	margin-bottom: 20px;
}
.recent-event__publish-date {
	font-weight: bold;
}
.recent-event__title {
	font-size: 16px;
	margin: 0 0 10px;
}
@media (min-width: 992px) {
	.recent-event__publish-date {
		float: left;
		margin-right: 30px;
	}
	.recent-event__body {
		border-left: 1px dashed #FF8042;
		padding-left: 30px;
		overflow: hidden;
	}
}

/**
 * 最新ブログ
 */
.recent-blog {
	margin-bottom: 20px;
}
.recent-blog a {
	color: #333;
	display: block;
	text-decoration: none;
}
.recent-blog a:hover,
.recent-blog a:active,
.recent-blog a:focus {
	opacity: 0.8;
}
.recent-blog__media {
	float: left;
	width: 80px;
	margin-right: 15px;
}
.recent-blog__body {
	overflow: hidden;
}
.recent-blog__title {
	font-size: 14px;
	margin: 10px 0 0;
}
.recent-blog__date {
	font-size: 12px;
}
@media (min-width: 992px) {
	.recent-blog__media {
		position: relative;
		padding-bottom: 60%;
		height: 0;
		overflow: hidden;
			float: none;
			width: auto;
			margin-right: 0;
	}
	.recent-blog__media img {
		position: absolute;
		top: 50%;
		left: 50%;
		-webkit-transform: translate(-50%, -50%);
		-moz-transform: translate(-50%, -50%);
		-ms-transform: translate(-50%, -50%);
		transform: translate(-50%, -50%);
	}
	.recent-blog__no-image {
		width: 150px;
		height: 150px;
	}
}

/**
 * 支援団体一覧
 */
.table--organization-list {
	border-top: 1px solid #ddd;
	border-right: 1px solid #ddd;
	width: 100%;
}
.table--organization-list td {
	border-bottom: 1px solid #ddd;
	border-left: 1px solid #ddd;
	padding: 10px;
	vertical-align: top;
}
.table--organization-list .table--organization-list__name {
	background-color: #eee;
	font-size: 16px;
	font-weight: bold;
}
.table--organization-list .table--organization-list__name a {
	color: #333;
}
.table--organization-list .table--organization-list__genre {
	width: 20%;
}
.table--organization-list .table--organization-list__sub-genre {
	width: 30%;
}
.table--organization-list .table--organization-list__place {
	width: 50%;
}
@media (max-width: 991px) {
	.table--organization-list,
	.table--organization-list tbody,
	.table--organization-list tr,
	.table--organization-list td {
		display: block;
	}
	.table--organization-list .table--organization-list__genre {
		float: left;
		width: 50%;
	}
	.table--organization-list .table--organization-list__sub-genre {
		float: left;
		width: 50%;
	}
	.table--organization-list .table--organization-list__place {
		clear: both;
		width: auto;
	}
}

.organization-genre-list {
	margin: 0 0 30px;
	padding: 20px 10px 15px;
	background-color: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 5px;
}
.organization-genre-list .organization-genre-list__title {
	display: block;
	margin-bottom: 10px;
}
.organization-genre-list .organization-genre-list__list {
	list-style: none;
	margin: 0 -10px;
	padding: 0;
}
.organization-genre-list .organization-genre-list__item {
	display: inline-block;
	margin: 0 10px 5px 10px;
	padding: 0;
}
.organization-genre-list .organization-genre-list__item img {
	width: 40px;
}

/**
 * 支援団体詳細
 */
.table--organization th {
	background-color: #eee;
}
.table--organization td *:last-child {
	margin-bottom: 0;
}
.table--organization table {
	width: 100%;
}
.table--organization table th,
.table--organization table td {
	vertical-align: top;
	border-bottom: 1px solid #eee;
	padding-top: 5px;
	padding-bottom: 5px;
}
.table--organization table th {
	background-color: transparent;
	padding-right: 30px;
}
.organization-photo {
	border: 1px solid #eee;
	display: inline-block;
	width: 80px;
	height: 80px;
	margin: 0 5px 5px 0;
	padding: 3px;
}
@media (max-width: 991px) {
	.table--organization,
	.table--organization tbody,
	.table--organization tr,
	.table--organization th,
	.table--organization td {
		display: block;
		width: auto;
	}
	.table--organization {
		border-top: none !important;
	}
	.table--organization th {
		border-right: none !important;
		border-left: none !important;
	}
	.table--organization td {
		border: none !important;
	}
	.table--organization .contact-field-label {
		padding-bottom: 0;
	}
}
@media (min-width: 992px) {
	.table--organization th {
		white-space: nowrap;
	}
	.table--organization table th {
		width: 25%;
	}
	.table--organization table tbody tr:last-child th,
	.table--organization table tbody tr:last-child td {
		border-bottom: none;
	}
}
.organization-genre img {
	width: 32px;
}
.activity-content + .activity-content {
	margin-top: 20px;
}
.activity-content .activity-content__title {
	font-size: 18px;
	margin: 0 0 10px;
	border: none;
	border-left: 5px solid #ff8042;
	padding: 0 0 0 10px;
}
.activity-content .activity-content__table {
	border-bottom: 1px solid #eee;
}