@charset "utf-8";

/*
Theme Name: ReSUNOKO News Theme
Theme URI: https://resunoko-square.jp/news/
Description: りすのこスクエアニュースページのオリジナルテーマ
Author: risunoko
Version: 1.0
Tags:
*/


:root {
    --green: #004e31;
    --light-green:#D7F1F0;
    --dark-brown: #3F2114;
    --gray: #DFDFDF;
    --light-gray: #F1F1F1;
    --dark-gray: #64696B;
}

a {
	text-decoration: none;
}

.pankuzu {
	margin-top: -30px;
	margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
	.pankuzu {
	padding-top: 60px;
}
}


/* news-top */
.news-container {
	max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.news-container .article a {
	color: var(--green);
	text-decoration:underline;
}

.news-container .article button {
	color: #fff;
    background: var(--green);
    padding: 10px 30px;
    display: inline-block;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.news-container .article ul {
	list-style: disc;
    list-style-position: inside;
}

.section-title h2 {
	color: var(--green);
	margin-bottom: 50px;
}

.article-index-list {
	display: flex;
	flex-wrap: wrap;
    justify-content: space-between;
}

.article-index__item {
	flex-basis: calc(33.333% - 30px);
	margin-bottom: 4rem;
	padding: 0;
    box-sizing: border-box;
}

.article-index-list::before,
.article-index-list::after {
	display: block;
    content: "";
	height: 1px;
	width: calc(33.333% - 30px);
	order: 2;
}

.article-index__item figure {
	margin: 0;
	transition: all 0.3s;
}

.article-index__item:hover {
	opacity: 0.8;
	transition: 0.3s;
}

.article-index__bottom {
	display: flex;
	align-items: center;
	font-size: 0.8rem;
	margin-top: .8rem;
}

.article-index__date {
	margin-right: .5rem
}

.article-txt {
	overflow: hidden;
    height: 5em;
    font-size: .8rem;
    line-height: 1.8;
    color: #ccc;
}

.pagination{
   margin:40px 0 0;
}
.nav-links{
   display:flex;
}

.pagination .page-numbers{
   display:inline-block;
   margin-right:20px;
	padding:15px 25px;
   color:#333;
   border-radius:3px;
	box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
   background:#fff;
}

.pagination .page-numbers:hover {
	background: var(--green);
	color: #fff;
}

.pagination .current{
   padding:15px 25px;
   background:var(--green);
   color:#fff;
}
.pagination .prev,
.pagination .next{
   background:transparent;
   box-shadow:none;
   color:var(--green);
}
.pagination .dots{
   background:transparent;
   box-shadow:none;
}

.article-index__link figure {
	position: relative;
    margin-bottom: 1.5em;
    overflow: hidden;
    border-radius: 2px;
}

.article-index__link figure img {
	object-fit: cover;
    height: 300px;
	width: 100%;
}

@media screen and (max-width: 1300px) {
	.article-index__item {
		flex-basis: calc(50% - 20px);
	}
}

@media screen and (max-width: 900px) {
	.article-index__link figure img {
		height: 250px;
	}
}

@media (max-width: 768px) {
	.section-title h2 {
		padding-top: 2rem;
		margin-bottom: 30px;
	}
	
	.news-container {
		max-width: 95%;
	}
	
	.pagination .page-numbers,
	.pagination .current{
		padding: 5px 15px;
	}
	
	.pagination {
		margin: 10px 0 0;
	}
}

@media screen and (max-width: 599px) {

	
	.article-index-list {
		flex-direction: column;
	}
}


/* single */
.article {
	position: relative;
	max-width: 1000px;
	margin: 0 auto 40px;
}

.article .news-img_top {
	object-fit: cover;
	display: block;
    width: 100%;
}

.article_img_width img {
	object-fit: none!important;
	width: auto!important;
}

.article p {
	margin: 1rem 0;
}

.post-next {
	border-top: 1px solid rgba(0,0,0,0.15);
	margin-top: 2rem;
	padding-top: 2rem;
	display: flex;
    justify-content: space-between;
	list-style: none!important;
}

.nav-previous a ,.nav-next a {
	color: var(--green);
}

.post-time {
	font-weight: 600;
	display: flex;
    align-items: center;
    justify-content: center;
}

.post-categories {
	margin-left: 0.5rem;
}

.entry__header {
	text-align: center;
	margin: 50px auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}




/*ContactForm7カスタマイズ*/

.contact-container {
	width: 60%;
	margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}


.CF7_ex {
	border: 1px solid rgba(0,0,0,0.15);
    padding: 0.8rem;
}

/*入力欄*/
.CF7_table input, .CF7_table textarea {
	border: 1px solid #d8d8d8;
	width: 100%;
    padding: .5rem;
	margin-top: 0.5rem;
}

.CF7_table .checkbox input{
	width: auto;
}

.CF7_table ::placeholder {
	color:#797979;
}

.CF7_table_link {
	margin: 1rem 0;
}

.CF7_table_link a {
	color: var(--green);
	text-decoration: underline;
}

/*「必須」文字*/
.CF7_req{
	font-size:.9em;
	padding: 5px 10px;
	background: #e96081;
	color: #fff;
	border-radius: 3px;
	margin-right:1em;
}

/*「任意」文字*/
.CF7_unreq{
	font-size:.9em;
	padding: 5px;
	background: #bdbdbd;/*グレー*/
	color: #fff;
	border-radius: 3px;
	margin-right:1em;
}

.acceptance {
	text-align: center;
}

/*送信ボタン*/
.CF7_btn {
	padding: 15px;
	margin-top: 2rem;
    width: 100%;
    font-weight: bold;
    font-size: inherit;
	text-align: center;
	color: #fff;
	border-radius: 6px;
    background-color: var(--green);
}
div.wpcf7 .wpcf7-spinner {
    display: none !important;
}

.CF7_btn:hover {
	opacity: 0.8;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #e96081;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 15px;
    width: 100%;
	border-color: none!important;
    text-align: center;
}

.wpcf7 form .wpcf7-response-output {
	margin: 2em 0 1em!important;
	border: none;
}

.CF7_btn:hover {
	opacity: 1;
}

/* CF7チェックボックスを縦並びに */
span.wpcf7-checkbox .wpcf7-list-item {
margin-top:5px;
display: block;
}

@media screen and (max-width: 900px) {
	.contact-container {
		width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.acceptance {
		text-align: left;
	}
}

/*投稿*/
.news-bottom-img {
	display: flex;
	align-items: center;
	justify-content:space-between;
}

.news-bottom-img img {
	flex-basis: calc( 50% - 10px);
	width: 0vw;
}

@media screen and (max-width: 768px) {
	.news-bottom-img {
		display: block;
	}
	
	.news-bottom-img img {
		width: 100vw;
	}
}
