@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
*/

/************************************
** ページネーション設定
************************************/
.pager-prev-next a {
    width: 35%;
}
.pager-links span,
.pager-links a span {
	border-radius: 30px;
	font-weight: bold;
}
.pager-links span {
	background-color: white;
	color: #38b6ff;
}
.pager-links a span,
.modal-footer .modal-close {
	background: linear-gradient(#38b6ff,#0167d3);
	color: white;
	box-shadow: 0px 4px 12px rgba(60, 64, 67, 0.24);
}
.pager-links a:hover span {
	color: white;
	opacity: 0.6;
}
.page-numbers {
    border: none;	
}
.page-numbers.current  {
    border: 1px solid #38b6ff;	
}
.blogcard-wrap {
	width: 100%;
}
.blogcard-footer.internal-blogcard-footer.cf {
	display: none;
}
/************************************
** トップシェアボタン
************************************/
.sns-share.ss-high-and-low-lc a .social-icon {
  font-size: 22px;
}

/************************************
** ボトムシェアボタン
************************************/
@media screen and (min-width: 481px) {
  .sns-share,
  .sns-follow {
    width: 70%;
    margin-right: auto;
    margin-left: auto;
  }
}

.sns-share-buttons {
  justify-content: space-evenly;
}

.sns-share-buttons a {
  width: 50px !important;
  height: 50px;
  font-size: 1.25em;
  border-radius: 50% !important;
}

@media screen and (max-width: 834px) {
  .ss-bottom .sns-share-buttons a {
    font-size: 1.3em;
  }
  main.main, div.sidebar {
    padding: 32px 10px;
  }
}

.sns-share-buttons a .button-caption {
  display: none !important;
}

.sns-share-message,
.sns-follow-message {
  position: relative;
  /*margin-bottom: 30px;*/
  /*color: #bbb;*/
}

/************************************
** ボトムフォローボタン
************************************/
.sns-follow-buttons {
  justify-content: space-evenly;
}

.sns-follow-buttons a {
  width: 50px;
  height: 50px;
  font-size: 1.7em;
  border-radius: 50% !important;
}

@media screen and (max-width: 834px) {
  .ss-bottom .sns-follow-buttons a {
    font-size: 1.3em;
  }
}
/************************************
** フッター
************************************/
#footer {
    background-color: #0078BD;
}

/************************************
** 固定ページで日付更新日を非表示
************************************/
.page .date-tags {
display: none;
}

/************************************
** 関連記事
************************************/
.related-entry-card .cat-label {
  display: none; /* カテゴリー非表示 */
}
.related-entry-card img {
	border-radius: 16px;
}

/************************************
** ブログカードサムネ
************************************/
.blogcard-thumbnail img, 
.card-thumb img {
    border-radius: 16px;
}

.widget-entry-cards.ranking-visible .card-thumb::before {
	border-radius: 16px;
}

.blogcard {
	border-radius: 16px;
	padding: 16px;
}

.a-wrap:not(.prev-post, .next-post, .prev-next-home) {
    border-radius: 16px;
}
/************************************
** twitter新スタイル
************************************/
.twitter_wrapper {
	max-width: 600px;
}
/* コンテナ */
.twitter_container {
	max-width: 600px;
	background: #ffffff;
	overflow: hidden;
	padding: 10px 10px 8px 10px;
	border: 1px solid #cfd9de;
	border-radius: 16px;
	box-shadow: 0px 4px 12px rgba(60, 64, 67, 0.24);
}
.twitter_container a {
	text-decoration: none;
}
/******************
/* ユーザー情報群 *
******************/
.twitter_user {
	display: flex;
}
/* アイコン */
.twitter_icon {
	width: 45px;
	height: 45px;
	flex-shrink: 0;
}
.twitter_icon img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: solid 1px rgba(239,243,244,1.00);
}
/* 名前群 */
.twitter_profile { 
	margin-left: 10px; 
	font-weight: bold;
	line-height: 1.4;
}
/* 名前 */
.twitter_name {
	font-size: 15px;
	color: #000000;	
}
/* ID */
.twitter_id {
	color: #8a9aa4;
	font-size: 13px;
}
/*************
* ツイート文 *
*************/
.twitter_tweet {
  padding: 10px 0 5px 0;
  border-bottom: solid 1px rgba(239,243,244,1.00);
}
.twitter_text {
	font-size: 15px;
}
/* 画像 */
.twitter_pic1 {
	margin-top: 5px;
	border-radius: 12px;
	overflow: hidden;
	border: solid 1px rgb(207, 217, 222);
	max-height: 50vh;
}
.twitter_pic2,
.twitter_pic3,
.twitter_pic4 {
	margin-top: 5px;
	width:100%;
	aspect-ratio: 16 / 9;
	display:grid;
	grid-template-columns: 1fr 1fr;
	border-radius: 12px;
	overflow: hidden; 
	grid-gap:2px;
	border: solid 1px rgb(207, 217, 222);
}
.twitter_pic3,
.twitter_pic4 {
	grid-template-rows: 1fr 1fr;
}
.twitter_pic3 .grid-item:not(.grid-item:nth-child(1)),
.twitter_pic4 .grid-item {
	aspect-ratio: 16 / 9;
}
.twitter_pic3 .grid-item:nth-child(1) {
	aspect-ratio: 8 / 9;
    grid-column: 1/2;
    grid-row: 1/3;
}
.twitter_pic1 img,
.twitter_pic2 img,
.twitter_pic3 img,
.twitter_pic4 img {
	width: 100%;
	height: 100%;
	max-height: 60vh;
	object-fit: cover;
	vertical-align: middle;
}
/* 日付 */
.twitter_date {
	padding-top: 5px;	
	color: rgb(83, 100, 113);
	font-size: 13px;	
}
.twitter_show_cnt {
	color: black;
	font-weight: bold;
	margin-right: 5px;
}
/*************
*** ボタン ***
*************/
.twitter_button {
	padding-top: 6px;
    width: 100%;
    font-size: 13px;    
	vertical-align: middle;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
.twitter_button a {
	color: rgb(83, 100, 113);
}
.twitter_button br{
	display: none;
}
.twitter_rp,
.twitter_rt,
.twitter_fav,
.twitter_bm {	
	width: 200px;
	display: flex;
  	align-items: center; /* 上下中央寄せ */
  	gap: 4px; /* アイコンとテキストの間の間隔を調整 */
}
.twitter_rp:hover {
	color: #1E9BF0;
}
.twitter_rp:hover svg {
	fill: #1E9BF0;
}
.twitter_rt:hover {
	color: #00BA7C;
}
.twitter_rt:hover svg {
	fill: #00BA7C;
}
.twitter_fav:hover {
	color: #F91880;
}
.twitter_fav:hover svg {
	fill: #F91880;
}
.twitter_bm:hover {
	color: #ffa500;
}
.twitter_bm:hover svg {
	fill: #ffa500;
}

.twitter_rp svg,
.twitter_fav svg,
.twitter_bm svg {
	fill: #fff;
	stroke: rgb(83, 100, 113);
	stroke-width: 2;

}
.twitter_rt svg {
	fill: rgb(83, 100, 113);
}
/************************************
** 背景色（記事・サイドバー）
************************************/
.main,
.sidebar {
	background: #F2F6FC;
}

/************************************
**　ヘッダー高さ
************************************/
/*  .logo, .logo-header, .logo-image {
    padding:0px;
} */

.header, .header-container, .mobile-menu-buttons, .sidebar h2, .sidebar h3 {
  background: -webkit-linear-gradient(#38B6FF, #0167D3) !important;
  background: linear-gradient(#38B6FF, #0167D3) !important;
}
#header-container .navi {
	background-color: transparent;
}
.header .header-in {
	min-height: 0;
}
.article h2 {
  border-left: 8px solid  transparent;
  border-image: -webkit-linear-gradient(180deg, #38b6ff, #0167d3) 1; /* Safari 11 以下用 */
  border-image: linear-gradient(180deg, #38b6ff, #0167d3) 1; /* 標準 */
  border-image-slice: 1;
  border-top: none; /* 他のボーダーを無効化 */
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  background-color: inherit;
  color: black;
}

/************************************
** リンク画像
************************************/
.link-img {
 width: 100%; 
 max-height: 20vh;
 margin: 0 auto; 
 overflow: hidden; 
}
.link-img img {
 transition: 1s all;
}
.link-img img:hover {
  transform: scale(1.1,1.1);
  transition: 1s all;
}

/************************************
** モバイルメニュー配色設定
************************************/
.mobile-menu-buttons {
background: #38b6ff;
color: white;
}

.mobile-menu-buttons .menu-button > a {
color: black;
}

.menu-close-button {
color: black;
}

/************************************
** 広告の高さを予め確保する
************************************/
.adsbygoogle:not(.adsbygoogle-noablate) {
	min-height: 100px;
}

/************************************
** lightboxのボタン表示
************************************/
.lb-nav a.lb-prev {
	opacity: 0.5;
}

.lb-nav a.lb-next {
	opacity: 0.5;
}

/************************************
** Cocoon トグルボックス
************************************/
/* トグルボックスラッパー */
.toggle-wrap {
	margin-bottom: 0 !important;
}
/* トグルボックスが開いてるときのコンテンツ */
.toggle-checkbox:checked ~ .toggle-content {
	padding: 10px;
	border-radius: unset;
}
/* トグルボタン */
.toggle-button {	
	padding: 6px 10px;
	background-color: white;
	font-size: 13px;
    font-weight: bold;
	border: 1px solid #cfd9de;
	border-top: none;
	border-radius: 0px 0px 16px 16px;
	box-shadow: 0px 4px 12px rgba(60, 64, 67, 0.24);
}
/* プラスボタン */
.toggle-button::before {
	font-size: 1em;
	opacity: 0.6;
}
/*  */
.toggle-content {
	display: flex !important;
  	flex-direction: column; /* 縦に並べる */
  	gap: 8px; /* 各要素間の距離を設定 */
	background-color: white !important;
	border: 1px solid #cfd9de !important;
	border-top: none !important;
	/*border-bottom-left-radius: 16px !important;*/
	/*border-bottom-right-radius: 16px !important;*/
	box-shadow: 0px 4px 12px rgba(60, 64, 67, 0.24);
}
/* トグルコンテンツの返信ツイート */
.toggle-content .reply_tweet {
	border-radius: 12px;
	box-shadow: none;
}
/* 返信ツイート付きのツイート本体 */
.with_reply_list {
	border-radius: 16px 16px 0px 0px;	
}
.reply_tweet {
	border-radius: 12px;
	box-shadow: none;
}
/* 他の返信ツイートリンクdivタグ */
.other_reply {
	text-align: center;
	padding: 6px 0;
	background-color: white;
	font-weight: bold;
	font-size: 14px;
	border: 1px solid #cfd9de;
	border-radius: 12px;
}
/* 他の返信ツイートリンクaタグ */
.other_reply a {
	display: block;
	width: 100%;
}
/* 以下は必要があるかわからない */
.toggle-checkbox:checked ~ .toggle-content > div {
    display: block;
}
.toggle-checkbox ~ .toggle-content > div {
    display: none;
}

/* 初期状態では非表示 */
.toggle-button-bottom {
  	display: none;
}

/* チェックされているときのみ表示 */
.toggle-checkbox:checked ~ .toggle-button-bottom {
  	display: block;
	border-radius: 0 0 16px 16px;
}
/************************************
** 自作モーダル
************************************/

#main {
  z-index: 3;
}
.twitter_container.reply_tweet {
  margin-bottom: 5px;
}
.openModal {
    width: 100%;
    height: 36px;
    background-color: #fff;
    border: 1px solid #cfd9de;
    border-top: none;
    border-radius: 0 0 16px 16px;
    color: #536471;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(60, 64, 67, .24);
	cursor: pointer;
	transition: box-shadow 0.2s ease;
}
.openModal:active, 
.pager-links a span:active, 
.modal-footer .modal-close:active,
.more a:active {
	box-shadow: none;	
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 9999;
}

.modal.visible {
  display: flex;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  width: 95%;
  max-width: 600px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 8vh;
}

.modal-header,
.modal-footer {
  padding: 0.5rem;
  background-color: #f0f0f0;
  border-bottom: 1px solid #cfd9de;
  z-index: 2;
  align-items: center;  
}
.modal-header {
  display: flex;
  padding: 1rem 0.8rem 0 0.8rem;
  -webkit-tap-highlight-color: transparent;
}
.modal-footer {
  border-top: 1px solid #ccc;
  border-bottom: none;
}

.modal-body {
  flex: 1;
  padding: 0.6rem;
  overflow-y: auto;
}
.modal-close {
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  float: right;
}
.modal-header .modal-close {
  top: 0;
  right: 0;
  border: none;
  margin-left: auto;
  position: relative;
  font-size: 38px;
  color: #808080;
  width: 34px;
  height: 34px;	
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7.2px;
  border-radius: 8px;
}
.modal-header .modal-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.modal-footer .modal-close {
  position: inherit;
  font-size: 16px;
  color: #fff;
  background-color: #38b6ff;
  border-radius: 20px;
  height: 38px;
  width: 100px;
}


body.no-scroll {
  overflow: hidden;
  padding-right: 15px !important;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  	/*必要ならばここにコードを書く*/
	.blogcard-title {
		font-size: 15px;/* タイトルの大きさ */
	}
	.blogcard-snippet {
		font-size: 12px;/* 文字の大きさ */
	}
	
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
  body.no-scroll {
  	padding-right: 0 !important;
  }
}
/* メニュー文字サイズ */
#navi .navi-in > .menu-header .item-label{
	font-size: 14px;
}
