@charset "UTF-8";

/* --------------------------------
 * base
 * -------------------------------- */
html {
  font-size: 80%;
}
body {
  color: #333;
  font-size: 1.2rem;
  font-family: "Hiragino Kaku Gothic ProN",  Meiryo,  sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}
a:link, a:visited, a:hover, a:active {
  color: #d03c56;
  text-decoration: none;
}
/* --------------------------------
 * parts
 * -------------------------------- */
.heading {
  padding: 10px 12px;
  background: url('../images/bg-slash.gif');
  letter-spacing: 1px;
  font-size: 1.6rem;
}
.hidden {
  display: none;
}

/* --------------------------------
 * grid layout
 * -------------------------------- */
body {
	display: grid;
	grid-template-columns: 3fr 1fr; 
	grid-template-rows: 182px 1fr 103px;
	grid-template-areas:
		"header header"
		"main sidebar"
		"footer footer";
	justify-content: center; 
}
.main-list {
	display:grid;
	grid-template-columns: 1fr; 
	grid-template-rows: 330px 1fr;
	grid-template-areas:
		"hot"
		"article-list";
	justify-content: center; 
	margin-right:10px;
}
.article-list {
	grid-area:article-list;
	display:grid;
	grid-auto-rows: 390px;
	grid-template-columns: repeat(auto-fit, 315px); 
	justify-content: center; 
}
@media screen and (max-width: 478px) {
html {
  font-size: 70%;
}
body {
	display: grid;
	grid-template-columns: 1fr; 
	grid-template-rows: 182px 1fr 1fr 103px;
	grid-template-areas:
		"header"
		"main"
		"sidebar"
		"footer";
	justify-content: center; 
}
.main-list {
	display:grid;
	grid-template-columns: 1fr; 
	grid-template-rows: 330px 1fr;
	grid-template-areas:
		"hot"
		"article-list";
	justify-content: center; 
	margin-right:0px;
}
}

/* --------------------------------
 * header
 * -------------------------------- */
.header {
  grid-area: header;
  width: 100%;
  padding: 28px 0 10px;
  margin-bottom:10px;
  background: url('../images/bg-header.gif') repeat-x;
  box-shadow: 0 0 10px 1px #000000;
}
.logo {
  width: 422px;
  height: 49px;
  margin: 0 auto;
  background: url('../images/logo.png') no-repeat;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}
.logo a {
  display: block;
  width: 100%;
  height: 100%;
}
.subtitle {
  line-height: 30px;
  text-align: center;
}
.global-nav {
  margin-top: 15px;
  text-align: center;
}
.global-nav .nav-item {
  display: inline-block;
  margin: 0 10px;
}
.global-nav .nav-item a {
  display: inline-block;
  width: 150px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 8px;
  color: #666;
  font-size: 1.3rem;
  letter-spacing: 1px;
  transition: 0.15s;
}

.global-nav .nav-item.active a,
.global-nav .nav-item a:hover {
  background-color: #d03c56;
  color: #fff;
}

@media screen and (max-width: 768px) {
.global-nav {
  margin: 0;
}

.global-nav .nav {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  width: 100%;
}

.global-nav .nav .nav-item {
    flex: auto;
    width: 33%;
}

.global-nav .nav .nav-item a {
  background: #fff;
  border: 1px solid #ccc;
  border-right: none;
  color: #333;
  display: block;
  text-align: center;
  text-decoration: none;
  height: 30px;
}

.global-nav .nav .nav-item a:hover {
  background-color: #d03c56;
  color: #ffffff;
}

.global-nav .nav .nav-item:last-child a {
  border-right: 1px solid #ccc;
}
.global-nav .nav .nav-item:nth-child(3n) a {
  border-right: 1px solid #ccc;
}
.global-nav .nav .nav-item:nth-child(n + 4) a {
  border-top: none;
}
}


/* --------------------------------
 * main
 * -------------------------------- */
.main {
  grid-area:main;
  display: block;
}
.main-list {
  grid-area:main;
  display: block;
}
.hot {
  grid-area:hot;
}
.hot-topic {
  display: block;
  height: 300px;
  margin-bottom: 30px;
  box-shadow: 0 6px 4px -4px rgba(0, 0, 0, 0.15);
  transition: opacity 0.15s;
}
.hot-topic:hover {
  opacity: 0.85;
}
.hot-topic .image {
  float: left;
  width: 330px;
  height: 100%;
}
.hot-topic .content {
  position: relative;
  float: left;
  width: calc(100% - 330px);
  height: 100%;
  padding: 105px 25px 0;
  background-color: #2d3d54;
  line-height: 1.6;
}
.hot-topic .title {
  margin-bottom: 15px;
  color: #fff;
  font-weight: normal;
  font-size: 2.0rem;
}
.hot-topic .desc {
  color: #ddc;
}
.hot-topic .date {
  position: absolute;
  top: 60px;
  left: 0;
  width: 140px;
  padding: 4px;
  background-color: #fff;
  color: #2d3d54;
  text-align: center;
  letter-spacing: 1px;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

.article-box {
  position: relative;
  display: block;
  width: 315px;
  height: 360px;
  margin-bottom: 30px;
  padding: 190px 15px 0;
  box-shadow: 6px 6px 8px -4px rgba(0, 0, 0, 0.15);
  transition: opacity 0.15s;
}
.article-box:hover {
  opacity: 0.8;
}
.article-box .title {
  margin-top: 10px;
  color: #555;
  font-size: 1.4rem;
  line-height: 1.6;
}
.article-box .desc {
  margin-top: 5px;
  color: #333;
  overflow: hidden;
/*
  text-overflow: ellipsis;
  white-space: nowrap;
*/
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.article-box .date {
  position: absolute;
  right: 0;
  bottom: 15px;
  display: block;
  width: 160px;
  padding: 4px;
  background-color: #b5d264;
  color: #2d3d54;
  text-align: center;
  letter-spacing: 1px;
  font-weight: bold;
  font-size: 1.1rem;
}
.article-box .image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

@media screen and (max-width: 800px) {
.hot-topic .image {
  width: 220px;
}
.hot-topic .content {
  width: calc(100% - 220px);
}
}
@media screen and (max-width: 478px) {
.hot-topic .image {
  width: 160px;
}
.hot-topic .content {
  width: calc(100% - 160px);
}
}

/* --------------------------------
 * sidemenu
 * -------------------------------- */
.sidemenu {
  grid-area: sidebar;
  width: 100%;
}
.ranking {
  margin-bottom: 30px;
  list-style-type: none;
  counter-reset: ranking;
}
.ranking .ranking-item {
  margin-top: 15px;
}
.ranking .ranking-item a {
  display: block;
  font-size: 0;
  transition: opacity 0.15s;
}
.ranking .ranking-item a:hover {
  opacity: 0.8;
}
.ranking .image {
  width: 70px;
  height: 55px;
}
.ranking .spacer {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 10px;
}
.ranking .order {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 10px;
  border: 1px solid #ccc;
  color: #aaa;
  vertical-align: 20px;
  text-align: center;
  font-weight: bold;
  line-height: 16px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.ranking .order::before {
  content: counter(ranking);
  display: inline-block;
  counter-increment: ranking;
  font-size: 1.0rem;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.ranking .ranking-item:nth-of-type(1) .order,
.ranking .ranking-item:nth-of-type(2) .order,
.ranking .ranking-item:nth-of-type(3) .order {
  border: none;
  color: #fff;
  font-weight: normal;
  line-height: 18px;
}
.ranking .ranking-item:nth-of-type(1) .order {
  background-color: #dab413;
}
.ranking .ranking-item:nth-of-type(2) .order {
  background-color: #6e7b84;
}
.ranking .ranking-item:nth-of-type(3) .order {
  background-color: #a0541a;
}
.ranking .text {
  display: inline-block;
  width: calc(100% - 130px);
  color: #000;
  vertical-align: top;
  font-size: 1.2rem;
  line-height: 1.5;
}
/* --------------------------------
 * footer
 * -------------------------------- */
.footer {
  grid-area:footer;
  width: 100%;
  padding: 20px 0 30px;
  background: #2d3d54 url('../images/bg-footer.gif');
  color: #fff;
}
.horizontal-list {
  width: 100%;
  margin: 0 auto;
  text-align: right;
  font-size: 0;
}
.horizontal-list .horizontal-item {
  display: inline-block;
  padding: 0 15px;
  letter-spacing: 1px;
}
.horizontal-list .horizontal-item + .horizontal-item {
  border-left: 1px solid #bbb;
}
.horizontal-list .horizontal-item a {
  border-bottom: 1px dashed #777;
  color: #bbb;
  font-size: 1.1rem;
  transition: color 0.15s;
}
.horizontal-list .horizontal-item a:hover {
  color: #ddd;
}
.copyright {
  margin-top: 30px;
  text-align: center;
  letter-spacing: 1px;
}
/* --------------------------------
 * content page
 * -------------------------------- */
h2.chapter{
	color : #3366cc;
	font-size : large;
	padding-left : 1em;
	margin-top : 1em;
	margin-bottom:1em;
	border-left-width : 0.5em;
	border-left-style : solid;
}
img.eyecatch{
	width:100%;
}

.entry-content{
	padding: 0em 1em;
	border-style:dotted;
	border-color:#cccccc;
	border-width: 0px 1px 1px 1px;
}
.entry-footer{
	text-align:right;
}

