@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 {
    width: 100%;
    height: 100vh;
    background-size: cover;
    display: flex;
}*/



/************************************
** 背景の装飾用
************************************/
.decorative-bg {
  background-image: url('/wp-content/themes/cocoon-child-master/img/circle.svg');
  background-repeat: repeat-x;          /* 横方向にリピート */
  background-position: center;
  background-size: auto 40px;           /* 高さを指定して、横は自動調整 */
  height: 40px;                     /* 装飾の高さを指定 */
  position: relative;
  z-index:2;
}
.circle_green {
  background-image: url('/wp-content/themes/cocoon-child-master/img/circle_green.svg');
}
.circle_brown {
  background-image: url('/wp-content/themes/cocoon-child-master/img/circle_brown.svg');
}
@media screen and (max-width: 768px){
  /*.decorative-bg  {
    background-size: auto 30px;
    height: 30px; 
  }*/
  .decorative-bg {
    background-position: bottom;
    background-size: auto 35px;
    height: 40px;
  }
}

/*************************************
**　TOPページ用
*************************************/


/*tab*/ 
.splide-tab-nav {
  display: flex;
  overflow-x: auto;
  margin-bottom: 1rem;
  gap: 1rem;
  max-width: 940px;
  margin: 0 auto;
  overflow-x: auto;       /* 横スクロールを有効化 */
  scroll-behavior: smooth; /* スムーススクロール */
  -webkit-overflow-scrolling: touch; /* スマホで慣性スクロール */
}
.tab-btn {
  padding: 0.5rem 1rem;
  background: #eee;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.active {
  font-weight: bold;
  border-bottom: 2px solid #333;
}


.tab-nav-wrapper {
  display: flex;
  align-items: center;
  max-width: 940px;
  margin: 0 auto;
}

.splide-tab-nav {
  display: flex;
  overflow: hidden;        /* ユーザーの直接スクロールは無効に */
  scroll-behavior: smooth; /* smooth scroll for JS */
  flex: 1;
}

.nav-prev,
.nav-next {
  background: var(--text_color_black);
  border: 1px solid #ccc;
  padding: 0.5em;
  cursor: pointer;
}

.splide__slide {
	max-width:456px;
}
.splide__slide img {
	width:100%;
}
.cstm-normal-loop-swiper.cstm-normal-loop .widget-entry-card-link {
	max-width:600px!important;
	height:50vh;
	position:relative;
}
.cstm-normal-loop-swiper.cstm-normal-loop .widget-entry-card-link  figure {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
}
.widget-entry-cards.card-large-image figure img {
	height:100%;
	object-fit:cover;
}

.widget-entry-cards.card-large-image .card-content {
    margin: 0 0 0.5em;
    padding: 0.4em 0;
    position: absolute;
    bottom: 0;
    height: auto;
    text-align: left;
}
.new-article-large {
  width: 100%;
  margin-bottom: 30px;
}
.new-article-grid,
.popular-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.new-article-item,
.popular-post-item,
.category-post-item {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}
.popular-grid {
	grid-template-columns:1fr;
}
.popular-grid .new-entry-cards {
	display:grid;
	grid-template-columns:repeat(3,1fr);
}

/*************************************
**　全体用css
*************************************/
.footer,.content {
	margin:0;
}
.wrap {
	width:100%;
	margin:0 auto;
}
.main {
	background:#fffef6;
	padding:0;
}
.header-container-in .navi {
	display: grid;
    justify-content: end;
    padding: 16px 40px;
}
/*ヘッダーの掲示板リンクのみスタイルを変更*/
.topix {
	border:solid 1px #333;
	border-radius:50px;
	background:#333;
	color:#fff;
}
.topix a {
	color:#fff!important;
}
/* メールアドレスを非表示 */
fieldset.bbp-form fieldset.bbp-form p:nth-child(3) {
	display: none;
}
/* ウェブサイトを非表示 */
fieldset.bbp-form fieldset.bbp-form p:nth-child(4) {
	display: none;
}
/*other*/


/*記事一覧*/
.post-card {
  position: relative;
  text-align: left;
}
.post-card a {
  display: grid;
  gap: 8px;
}
.post-card .cat-label,
.related-entry-card .cat-label {
  position: relative;
  padding: 3px 8px 0px;
  border-radius: 24px;
  font-size: 11px;
  background: transparent;
  border: solid 1px #333;
  color: #333;
  font-size: 11px;
  display: inline-block;
}
.post-content,.related-list a {
  display: grid;
  gap: 4px;
  transition: all 0.5s;
  padding: 0;
}
.post-grid,.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
article .post-thumb,.card-thumb {
  overflow: hidden; /* はみ出す部分を隠す */
  display: block;
  float: none;
}
article .post-thumb img,.card-thumb img {
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: 8px;
  width:100%; 
  height:auto; 
  display:block;
  transition: all 0.5s;
}
.post-card:hover .post-thumb img,.a-wrap:hover .card-thumb img {
  opacity: 0.8;
  scale: 1.1;
  border-radius: 8px;
}
.splide__slide .post-card:hover .post-thumb img,.splide__slide .post-card:hover .post-thumb {
  border-radius: 16px!important;
}
.post-card:hover .post-thumb {
  border-radius: 8px;
}

.post-title {
  font-size: 16px;
  font-weight: bold;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 150%;
}
.post-excerpt {
  font-size: 13px;
}
a.page-numbers {
  border: solid 1px #333;
  border-radius: 0;
}
.pagination .current,a.page-numbers:hover {
  background-color: #333;
  color: #fff;
  border-radius: 0;
}
a.prev.page-numbers,a.next.page-numbers {
  border: none;
}
.entry-content {
  margin-top: 0!important;
  margin-bottom: 0!important;
}
.entry-categories-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
@media screen and (max-width: 768px){
  article .post-thumb img {
    aspect-ratio: 2/1;
  }
}

/*記事詳細*/
a.cat-link:visited, a.cat-link {
  background: transparent !important;
  color: #333;
  border: solid 1px #333;
  border-radius: 40px;
  padding: 3px 9px 1px;
  margin: 0 auto;
}
a.cat-link {
  transition: all .9s;
}
.tag-link, .comment-reply-link {
  background: transparent !important;
  color: #333;
  border: solid 1px #333;
  border-radius: 40px;
  padding: 3px 9px 1px;
}

#new-post_detail .wp-block-image img {
  max-height: 500px;
  object-fit: cover;
}
.entry-title, .archive-title {
  font-size: 32px;
}
#new-post_detail {
  background: var(--white);
  padding: 40px;
  border: solid 3px var(--main_color_green);
  border-radius: 16px;
}
.new-post_wrapper {
    display: flex;
    gap: 24px;
}
.new-post_wrapper > div:nth-of-type(1) {
  width: calc(100% - 258px);
}
.new-post_wrapper > div:nth-of-type(2) > div {
  width: 258px;
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  position: sticky;
  top: 24px;
}
.related-entry-card-thumb {
  width: 100%!important;
  margin: 0;
  text-align: left;
  border-radius: 8px;
}
.related-entry-card-content {
  margin-left: 0;
  text-align: left;
  padding-bottom: 0;
}
.related-list .a-wrap:hover {
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  color: var(--cocoon-text-color);
}
.new-posts {
  border-radius: 8px;
  background: var(--sub_color_green);
  padding: 16px;
  font-size: 13px;
}
.new-posts h2 {
  font-size: 28px;
  margin-bottom: 30px;
}
.new-posts ul {
  display: grid;
  gap: 8px;
}
.new-posts a {
  display: flex;
  gap: 8px;
}
.new-posts a img {
  aspect-ratio: 2/1;
  object-fit: cover;
  width: 100%;
  max-width: 83px;
  border-radius: 4px;
}
.entry-content h2{
  background-color: var(--main_color_green)!important;
  padding-left: 10px;
  color: #333;
	background:none;
  padding: 16px 16px 12px!important;
  font-size: 28px;
  margin-bottom: 32px;
  margin-top: 40px;
}
.entry-content  h3 {
  border-left: 10px solid var(--main_color_green);
  padding: 6px 8px;
  color: #333;
  border-top: none;
  border-bottom: solid 1px var(--main_color_green);
  border-right: none;
  font-size: 24px;
  margin-bottom: 32px;
}
.wp-block-cocoon-blocks-balloon-ex-box-1 {
  margin-bottom: 8px !important;
}
.speech-balloon {
  border-color: var(--main_color_green)!important;
  background: #fff!important;
}
.speech-balloon::after {
    content: "";
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    left: -9px;
    top: 10px;
    border-right-width: 12px;
    border-right-style: solid;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    background-color: transparent!important;
}
div#toc {
  border-color: var(--main_color_green)!important;
  border-radius: 8px;
  margin: 60px 0 60px;
  width: 100%;
}
.toc-list.open ol {
  margin-left: 1em;
}
.article .toc-list li {
    list-style: inside;
}
#prev-next-home span.fas.fa-home {
  font-size: 25px;
}
.widget-entry-cards.large-thumb-on .card-title,.new-posts li a div p {
  display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
@media screen and (max-width: 782px) {
  .new-post_wrapper {
    flex-direction: column;
  }
  .new-post_wrapper > div:nth-of-type(1) {
    width: 100%;
  }
  .new-post_wrapper > div:nth-of-type(2) > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    position: relative;
  }
  .new-post_wrapper.width_940 {
    padding-left: 0!important;
    padding-right: 0!important;
    padding-top: 8px;
  }
  #new-post_detail {
    border: none;
    border-top: solid 3px var(--main_color_green);
    border-radius: 0;
    padding: 24px;
  }
  .breadcrumb-caption {
    font-size: 11px;
  }
  .entry-title, .article h2 {
    padding: 16px 0;
    margin-top: 40px;
  }
  .new-posts {
    border-radius: 16px 0px 0px 16px;
    padding: 16px;
    font-size: 13px;
    margin-left: 24px;
  }
  .new-posts h2 {
    margin-bottom: 16px;
  }
  .new-posts a {
    align-items: center;
  }
  .new-posts a img {
    aspect-ratio: 4 / 3;
  }
  .related-entry-card .cat-label {
    margin-bottom: 4px;
  }
  .rect-entry-card .a-wrap:not(.ec-big-card-first) .card-thumb {
    margin-bottom: 12px;
  }
  .related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  .entry-content  h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .entry-content  h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  div#toc {
    margin:40px 0;
  }
}

/*参画団体*/
#operation .join_box {
  display: flex;
  gap: 32px;
}
#operation .join_box p,#operation .join_box img {
  max-width: 280px;
  width: 100%;
}
@media screen and (max-width: 768px){
  #operation .join_box p,#operation .join_box img {
  max-width: 640px;
  width: 100%;
}
#operation .join_box {
  display: grid;
}
}

/* top slide */
#latestSplide {
  margin-top:40px;
}
#latestSplide img {
  width: 100%;
  height:337px;
  object-fit:cover;
  border-radius:16px;
}
#latestSplide a .post-thumb {
  margin-right:16px;
  border-radius:16px;
}
#latestSplide a .post-info {
  border:solid 3px var(--sub_color_green);
  border-radius:16px;
  padding:16px 24px;
  background:#fff;
  position: relative;
  top: -40px;
  right: 0;
  margin-left: 40px;
}
#latestSplide a .cat-label {
  position: relative;
  top: 0;
  left: 0;
  border: none;
  font-size: 11px;
  color: var(--text_color_black);
  background-color: var(--white);
  padding: 0 14px 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#latestSplide a .cat-label i {
  position: absolute;
  width: 11px;
  height:11px;
  border-radius:8px;
  background:var(--main_color_green);
  top:3px;
  left:0;
}
.splide__pagination__page.is-active {
  background-color: var(--main_color_green);
}
.splide__pagination__page {
  background: #fff;
  border: solid 1px var(--main_color_green);
}
.splide__arrow {
  background:transparent;
}
.splide__arrow svg {
  width: 2em;
  height: 5em;
}
@media screen and (max-width: 500px){
  #latestSplide img,#latestSplide a .post-thumb,#latestSplide a .post-info {
    border-radius: 16px 0 0 16px ;
  }
  #latestSplide a .post-thumb {
    padding-right: 0;
  }
  #latestSplide a .post-info {
    border-right: none;
  }
}

/* other top */
.mokomoko-wrapper {
  width: 100%;
  max-width: 400px; /* お好みで */
  aspect-ratio: 1 / 1; /* 正方形でバランス良く */
  overflow: hidden;
}
.mokomoko-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#mokomokoClip);
}
cls-1 {
  fill: #231815;
}
#popular_article .widget-entry-cards.large-thumb-on .a-wrap:hover .card-content {
  margin:0;
  opacity: 1;
  background:transparent;
  color:#fff;
}

#popular_article .widget-entry-cards.card-large-image .card-content {
  position: relative;
  margin:0;
  background:transparent;
  color:var(--text_color_black);
  font-size:16px;
  font-weight:bold;
  padding:0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#popular_article .widget-entry-cards.card-large-image img {
  border-radius:8px;
  aspect-ratio: 4 / 3 !important;
}
#popular_article .widget-entry-cards.large-thumb-on .e-card {
  display:grid;
  grid-template-columns: 118px 1fr;
  gap:0 8px;
}
#popular_article .popular-entry-card-date.display-none,#news .new-entry-card-date.display-none {
  display: block !important;
  font-weight:normal;
  color:#88985B;
}
.popular-entry-card-update-date,#news .popular-entry-card-update-date {
  display: none !important;
}
.widget-entry-cards.ranking-visible .card-thumb::before {
  display:none;
}
.widget-entry-cards figure {
  margin:0 auto;
}

.popular-entry-cards {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap: 16px 40px;
}

.popular-entry-cards.widget-entry-cards.card-large-image .a-wrap,,#popular_article .popular-entry-cards.widget-entry-cards.card-large-image .a-wrap {
  max-width:100%;
  width:100%;
  padding: 0 0 16px 0;
  margin: 0 auto;
  border-bottom:solid 1px #B3C879;
}
.popular-entry-cards.widget-entry-cards.card-large-image .a-wrap:last-of-type,.popular-entry-cards.widget-entry-cards.card-large-image .a-wrap:nth-of-type(5) {
  border-bottom:none;
}
.popular-entry-cards.widget-entry-cards.card-large-image .a-wrap:hover {
  background:transparent;
}
/*投稿ページの人気記事*/
.popular-posts .popular-entry-card-link.widget-entry-card-link.a-wrap {
  border: none!important;
  padding: 0;
}
.popular-posts .widget-entry-cards.card-large-image .card-content {
  padding: 0;
  margin: 0;
}
.popular-posts .popular-entry-card-link.widget-entry-card-link.a-wrap > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}
.widget-entry-cards.large-thumb-on .card-content {
  background:none;
  color: var(--cocoon-text-color);
  position: relative;
  font-size: 13px;
}
.popular-posts .widget-entry-cards.large-thumb-on .a-wrap:hover img {
  transform: scale(1);
  border-radius: 4px;
  opacity: 1;
}
.widget-entry-cards.large-thumb-on .a-wrap:hover {
  opacity: 1;
  transform: scale(1);
  height: auto!important;
}
.popular-posts .popular-entry-card-date.widget-entry-card-date.display-none {
  display: inline-block;
}
.widget-entry-cards.large-thumb-on .a-wrap {
  font-size: 13px;
  transition: none;
  max-width: none;
}
.widget-entry-cards.large-thumb-on .a-wrap:hover .card-content {
  margin: 0!important;
  color: var(--main_color_green)!important;
  opacity: 1;
}
.popular-posts .popular-entry-cards {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}
.eye-catch .cat-label {
  display: none;
}
/*ここからイラスト*/
.catch_img1,.catch_img2,.catch_img3,.catch_img4 {
  position:absolute;
}
.catch_img1 {
  top:30px;
  left:60px;
}
.catch_img2 {
  top:30px;
  right:60px;
}
.catch_img3 {
  bottom:60px;
  left:-56px;
}
.catch_img4 {
  bottom:60px;
  right:-56px;
}
  /* お知らせ */
  #news .new-entry-card-thumb {
    display: none !important;
  }
  #news ul {
    padding:0;
  }
  #news li.news-item {
    list-style:none;
    border-bottom:solid 1px var(--main_color_green);
    padding-bottom:8px;
  }
@media screen and (max-width: 768px){
  .popular-entry-cards {
    grid-template-columns: 1fr;
  }
  .popular-entry-cards.widget-entry-cards.card-large-image .a-wrap:nth-of-type(5) {
    border-bottom: solid 1px #B3C879;
  }
  #popular_article .pd_tb_120_80 {
    padding: 60px 0 30px;
  }
  #search_contents .pd_tb_120_80 {
    padding: 100px 0 40px;
  }

}


@media screen and (max-width: 1000px){
  .popular-entry-cards {
    grid-template-columns: 1fr;
  }
  .catch_img2 {
    top: inherit;
    right: inherit;
    bottom: -20px;
    left: 10px;
    z-index: 3;
    width: 30%;
    max-width: 200px;
  }
  .catch_img1 {
    top: -75px;
    right: 0;
    bottom: inherit;
    left: inherit;
    z-index: 3;
    width: 30%;
    max-width: 200px;
  }
  .catch_img3,.catch_img4 {
    display: none!important;
  }
  #introduction .pd_tb_120_80 {
    padding: 170px 0 200px;
  }
}
@media screen and (min-width:320px) and (max-width: 768px){
  #introduction .pd_tb_160_80 {
    padding: 120px 0;
  }
  .catch_img2 {
    top: inherit;
    right: inherit;
    bottom: -10px;
    left: 10px;
    z-index: 3;
    width: 40%;
    max-width: 170px;
  }
  .catch_img1 {
    top: -75px;
    right: 0;
    bottom: inherit;
    left: inherit;
    z-index: 3;
    width: 40%;
    max-width: 170px;
  }
}

/* プライバシーポリシー */
.privacy-policy .read-time {
  display: none;
}
.privacy-policy .entry-content {
  max-width: 940px;
  margin: 0 auto;
  padding: 40px;
  border: solid 3px var(--main_color_green);
  border-radius: 16px;
  background: #fff;
}
.privacy-policy .entry-content h3,.kiyaku_detail h3 {
  border-left: none;
    padding: 0;
    color: #333;
    border-top: none;
    border-bottom: none;
    border-right: none;
    font-size: 20px;
    margin-bottom: 16px;
}
@media screen and (max-width: 768px){
  .privacy-policy .entry-content {
    padding: 24px;
  }
}

/*　利用規約 */
.kiyaku_detail h4 {
  margin-bottom: 2px;
}
.navi-menu-content {
  right: 0;
  left: auto;
  -webkit-transform: translateX(125%);
  transform: translateX(125%);
}

/* about */
#about_contents li div {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#about_contents li div p:last-child {
  margin-top: auto;
}