@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

.header-container-in.hlt-top-menu{
	padding: 12px 0;
}

.article h1{
	padding-bottom: 32px;
	text-align: center;
	font-size: 2.5em;
}

.article h3{
	border: none;
	background: #2e5982;
    color: white;
	padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 0;
	font-size: 1.25em;
}

.article h4{
	border: none;
	border-left:  4px solid #b59920;
	font-size: 1.25em;
	padding: 4px 10px;
	font-weight: 600;
}

.left-news h4{
	font-size: 1em;
}

h2{
	font-weight: 500;
}

/*.article h2{
	background: #2e5982;
	background: linear-gradient(180deg,rgba(46, 89, 130, 1) 0%, rgba(116, 143, 168, 1) 82%);
    color: white;
    padding: 6px 12px;
    margin-bottom: 16px;
    border-radius: 0;
	font-size: 20px;
}
*/

.article h5{
	font-weight: 400;
	font-size: 1em;
}

a{
	color: #1967d2;
}

.top-news-section a , .kokuchi-section a , .article h5 a , .link-list a{
	text-decoration: none;
	color: #0a0a0a;
}
a:hover{
	opacity: 0.8;
	color: #003364;
}




/*固定ページに日付を表示させない*/
.page .date-tags {
display: none;
}

/*Globalmenu*/
#navi .navi-in>ul>li>a {
    padding: 0 1em;
}


a:hover{
	opacity: 0.8;
}

.wp-block-gallery.has-nested-images.columns-2.is-cropped figure.wp-block-image {
    width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) / 2);
    margin: 0;
}

/* 最後の画像だけ100%に広がるのを防ぐ */
.wp-block-gallery.has-nested-images.columns-2.is-cropped figure.wp-block-image:nth-child(odd):last-child {
    width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) / 2) ;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
  flex-grow: 0;
}
.wp-block-gallery.columns-2 .wp-block-image {
  max-width: calc(50% - 8px);
}


/*NEWS*/

.left-news{
	flex: 2;
	min-width: 320px;
	position: relative;
}
.right-news{
	flex: 3;
	min-width: 300px;
}

.top-news-section{
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}
.simple-post{
margin-bottom: 16px;
}
.simple-post div{
	display: flex;
	margin-bottom: 2px;
}

.left-news .n_mark{
	position: absolute;
    z-index: 999;
    right: 8px;
    font-weight: bold;
    padding: 12px 8px;
	background: #d20606;
	color: white;
}

.latest-post ._tag{
	display: flex;
    flex-direction: row;
    gap: 8px;
	margin-bottom: 4px;
}
.latest-post h3{
	margin-bottom: 0;
	font-size: 16px;
    border: none;
    padding: 8px 8px 16px;
}

.thumb-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin: 8px 0 16px 0;
}
.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


ul.simple-post{
	padding-left: 0;
}

ul.simple-post li{
    list-style: none;
    gap: 16px;
	border-bottom: 1px solid #ccc;
	padding: 8px 0;
}
ul.simple-post li:last-child{
	border-bottom: none;
}
ul.simple-post li:first-child{
	padding-top: 0;
}

.pos_title{
	flex: 1;
	display: inline-block;
}

.t_date{
	width: 140px;
}

.top-news-section .category a{
	color: white;
	text-decoration: none;
	display: inline-block; 
	background: #b59920;
	font-size: 0.8em;
    padding: 0 6px 0 6px;
    margin: 0 0 0 6px;
}
.entry-content>*, .demo .entry-content p {
    line-height: 1.4;
}
.more-archive-link a {
	display: block;
	transition: opacity 0.3s ease;
	text-align: center;
    padding: 10px;
	border: solid 1px #d0d0d0;
    background: #dbdbdb;
	background: linear-gradient(0deg,rgba(219, 219, 219, 1) 0%, rgba(247, 247, 247, 1) 82%);
	margin: auto;
}
.more-archive-link{
	width: 100%;
}
.more-archive-link a:hover {
	opacity: 0.7 !important;
}

.kokuchi-img{
	margin-bottom: 16px;
}

/*北陸三県*/
.ken{
	padding: 16px;
    background: #f7f7f7;
    border: solid 1px #d0d0d0;
}

/*アコーディオン　CSS*/
.custom-accordion {
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.custom-accordion input[type="checkbox"] {
  display: none;
}

.custom-accordion .accordion-label {
  display: block;
  background-color: #f2f2f2;
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.custom-accordion .accordion-label::after {
  content: '+';
  position: absolute;
  right: 16px;
  font-size: 18px;
  transition: transform 0.2s;
}

.custom-accordion input:checked + .accordion-label::after {
  content: '−';
}

.custom-accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  background-color: #fff;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.custom-accordion input:checked + .accordion-label + .accordion-content {
  max-height: 500px;
  padding: 12px 16px;
}

/*スライダー*/
.auto-slider {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
}
.auto-slider .slide {
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 16/9;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 8px;
}
.auto-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-horizontal{
	margin: 0 0 16px;
}



/*投稿*/
/*テーブル*/
figure.tournament_table{
	max-width: 800px;
	margin: auto;
}

figure.tournament_table table tr:nth-child(1){
	font-size: 1.2em;
}

figure.tournament_table table tr:nth-child(1) th{
	background-color: #318686;
	color: white;
}
figure.tournament_table table tr:nth-child(1) td{
	color:  #318686;
	font-weight: bold;
}
figure.tournament_table table tr:nth-child(2) th{
	background-color: #2d9a9a;
	color: white;
}

figure.tournament_table table tr:nth-child(n+3) th {
  background-color: #bedddd;
}

/*flexbox*/
.wp-block-gallery.is-layout-flex {
  justify-content: start; /* 左詰めに */
  flex-wrap: wrap;
}

.wp-block-gallery.is-layout-flex .wp-block-image {
  width: calc(50% - 8px);
  margin: 0;
}

@media (max-width: 768px) {
  .wp-block-gallery.is-layout-flex .wp-block-image {
    width: 100% !important;
  }
}

/*リンク*/
.link-list .wp-block-image{
	margin-bottom: 1em;
}


/*フッター*/

.footer{
	background: #383838;
	color: white;
}
.navi-footer-in a {
	color: white;
}

.copyright{
	font-size: 12px;
}
.navi-footer-in > .menu-footer li {
	border-left: none;
}
.navi-footer-in > .menu-footer li:last-child{
	border-right: none;
}

/*ボタン*/
.wp-block-button a{
	font-size: 16px;
	padding: 10px;
    font-size: 20px;
	max-width: 400px;
    min-width: 200px;
    border-radius: 2px;
    background: linear-gradient(0deg, rgba(219, 219, 219, 1) 0%, rgba(247, 247, 247, 1) 82%);
    border: solid 1px #d0d0d0;
    color: black;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
	main.main, div.sidebar {
		padding: 32px 24px;
	}
	
	/**/
	.navi-menu-content {
		left: auto;
		right: 0;
		-webkit-transform: translateX(105%);
		transform: translateX(105%);
	}
	.menu-close-button{
	text-align: left;
    padding-left: 16px;
	}
	.menu-drawer li{
		border-bottom: solid 1px #9f9f9f;
		padding: 10px;
	}
	.menu-drawer li:last-child{
		border-bottom: none;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
		main.main, div.sidebar {
		padding: 32px 20px;
}
	.left-news{
		min-width: 100%;
	}
	.right-news {
		min-width: 100%;
	}
}
