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

/****************************
 子テーマ用のスタイルを書く
*****************************/
/*必要ならばここにコードを書く*/

a img:hover {
   border: 0;
   opacity: 0.7;
}

#footer .author-name a {
  color: #0000cc;
}

#footer .author-name a:hover {
  color: #00bbff;
}

.navi-in > ul li > ul li {
  height: 40px;
  line-height: 40px;
  position: relative;
}

/****************************
 Font Size 
****************************/
.entry-card-snippet,
.related-entry-card-snippet {
    font-size: 0.9em;
  line-height: 150%;
  }

.tagline {
  text-align: center;
  font-size: 1em;
  margin: .6em 1em;
}

.pr-label-l {
  border: 1px solid #a8eded;
  font-size: 0.85em;
  text-align: left;
  padding: 0.3em 0.8em;
}
.breadcrumb {
  margin: 1em .4em;
  color: #555;
  font-size: 0.9em;
}

.entry-category, .post-date,
.post-update,
.post-author,
.amp-back {
  padding: 2px;
  display: inline;
  color: #555;
  font-size: 0.9em;
}

.cat-link ,
.tag-link {
  font-size: 0.9em;
  margin: 0.2em;
}

#sidebar .card-title {
  font-size: 0.95em;
}

.toc {
  border: 1px solid #ccc;
  font-size: 1em;
  padding: 1em 1.6em;
  display:  table;
}

#sidebar .toc {
  font-size: 0.9em;
  line-height: 150%;
}

#sidebar ol li {
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 24px;
  padding: 8px;
  position: relative;
  font-size: 1em;
}

/****************************
 Layout Base 
****************************/
.content-top {
  margin: 1em 0 0;
}

.main {
  padding-top: 0;
}

.sidebar {
  padding-top: 0;
}

p {
  margin: 0 10px;
}

ul,ol {
  margin: 10px;
}

table th,
table td {
  border: none;
  font-size: 1em;
  line-height: 150%;
}
.th-1,
.td-1 {
  white-space: nowrap;
  width: 28%;
}

.th-2,
.td-2 {
  white-space: normal;
  width: 72%;
}

.list-column {
  padding-bottom: 20px;
}

.hori-ul {
 display: flex;
}
.hori-li {
  list-style: none;
  padding-right: 10px;
  text-decoration: none;
}

/****************************
 アーカイブのアイコンを消す
*****************************/
  .archive-title :before {
   display: none;
}
/****************************
 エントリーカードラベル非表示 
****************************/
.entry-card .cat-label,
.cat-label {
  display: none;
}
/****************************
 固定ページ日付非表示 
****************************/
.page .date-tags {
  display: none;
}

/****************************
 カテゴリー、タグ一覧ページ
****************************/
.eye-catch img {
  vertical-align: bottom;
}

/****************************
 テーブルの境界線を消す
****************************/
.no-border {
  border: none;
  background-color: #FFFFFF;
}

/************************************
 トップへ戻るボタン
************************************/
/*.go-to-top {
  bottom: 80px;
}
*/
.go-to-top-button:hover {
  opacity: 0.7;
}

/************************************
 固定ページリスト
************************************/
.list-page-column {
  vertical-align: top;
  margin: 10px 0;
  padding: 10px;
}

.list-page-column a {
  color: inherit;
  text-decoration: none;
}

.list-page-column a:hover {
  color: #e53900;
  text-decoration: none;
}
/************************************
 フッターメニュー
************************************/
.footer-bottom,
.navi-footer-in a {
  font-size: 1em;
}

/**************************
 ページネーション
**************************/
.pagination {
  margin: 24px 0;
  clear: both;
  text-align: center;
  display: inline-flex;
  flex-wrap:wrap;
  justify-content: center;
  width: 100%;
}
.pagination .current {
  background-color: #eee;
}
.pagination a:hover {
  background-color: #f5f8fa;
  transition: all 0.3s ease-in-out;
  color: #333;
}

.page-numbers {
  color: #333;
  text-decoration: none;
  display: inline-block;
  height: 46px;
  width: auto;
  min-width: 46px;
  border: 1px solid #ddd;
  margin: 4px;
  line-height: 46px;
  text-align: center;
  border-radius: 4px;
}
.page-numbers span {
  line-height: inherit;
}

.page-numbers.dots {
  opacity: 0.6;
  background-color: #f5f6f7;
}

/****************************
 カテゴリーリスト表示 
****************************/
.A-cate-2 a .fa-tag:before {
    display: none;
}

.A-cate-2 a {
   vertical-align: top;
    width: 48%;
}

/****************************
 タグ表示 
****************************/
.A-tags-2 a .fa-tag:before {
    display: none;
}

.A-tags-2 a {
   vertical-align: top;
    width: 48%;
}

/************************************
 インデックスリストのタイトル付け
************************************/
.list.ect-vertical-card-2.ect-vertical-card.ect-2-columns.front-page-type-index {
  margin-top: 10px!important; /*上マージン調整*/
}
.archive .widget-index-top-title.main-widget-label { /*アーカイブインデックス*/
  display: none; /*非表示*/
}

/************************************
 アイキャッチ付きカテゴリー表示
************************************/
/* カテゴリーリストの中央揃えを確保 */
.A-cate-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 各カテゴリ間のスペース */
    justify-content: center; /* カテゴリー内のアイテムを中央揃え */
}

.A-tag-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 各カテゴリ間のスペース */
    justify-content: center; /* カテゴリー内のアイテムを中央揃え */
}

.category-link {
    text-decoration: none;
    color: inherit;
}

.category-item {
    position: relative;
    width: 80vw; /* ビューポートの幅の80% */
    max-width: 136px; /* 必要に応じて最大幅を設定 */
    height: 45vw; /* ビューポートの幅の45%（これも16:9の比率） */
    max-height: 76px; /* 必要に応じて最大高さを設定 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

 .category-item:hover {
        opacity: 0.7; /* マウスオーバー時に透明度を変更 */
}

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3); /* 背景色を半透明にする */
    color: white;
    padding: 0;
    text-align: center;
    font-size: 12px;
}

.tag-link {
    text-decoration: none;
    color: inherit;
}

.tag-item {
    position: relative;
    width: 80vw; /* ビューポートの幅の80% */
    max-width: 136px; /* 必要に応じて最大幅を設定 */
    height: 45vw; /* ビューポートの幅の45%（これも16:9の比率） */
    max-height: 76px; /* 必要に応じて最大高さを設定 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

 .tag-item:hover {
        opacity: 0.7; /* マウスオーバー時に透明度を変更 */
}
    
.tag-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3); /* 背景色を半透明にする */
    color: white;
    padding: 0;
    text-align: center;
    font-size: 12px;
}

/* カテゴリー＆タグ */
.A-tags-1 a {
    display: inline-block;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #71d0d0;
    padding: 0.1em 0.05em 0 0.2em;
    margin: 0.2em 0.05em;
    font-size: 1rem;
    text-decoration: none;
}

.A-tags-1 a:hover
{
    border:1px solid inherit;
    text-decoration: none;
   opacity: 0.7;
}

.A-tags-2 a {
    display: inline-block;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #71d0d0;
    padding: 0.1em 0.05em 0 0.2em;
    margin: 0.2em 0.05em;
    font-size: 1rem;
    text-decoration: none;
}

.A-tags-2 a:hover
{
    border:1px solid inherit;
    text-decoration: none;
   opacity: 0.7;
}

.A-cate-1 a {
    display: inline-block;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #71d0d0;
    padding: 0.1em 0.05em 0 0.2em;
    margin: 0.2em 0.05em;
    font-size: 1rem;
    text-decoration: none;
}

.A-cate-1 a:hover
{
    border:1px solid inherit;
    text-decoration: none;
   opacity: 0.7;
}

.A-cate-2 a {
    display: inline-block;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #71d0d0;
    padding: 0.1em 0.05em 0 0.2em;
    margin: 0.2em 0.05em;
    font-size: 1rem;
    text-decoration: none;
}

.A-cate-2 a:hover
{
    border:1px solid inherit;
    text-decoration: none;
   opacity: 0.7;
}

/****************************
 レスポンシブデザイン用のメディアクエリ 
****************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
.category-item {
    max-width: 136px; /* 必要に応じて最大幅を設定 */
    max-height: 76px; /* 必要に応じて最大高さを設定 */
}

.tag-item {
    max-width: 136px; /* 必要に応じて最大幅を設定 */
    max-height: 76px; /* 必要に応じて最大高さを設定 */
}

.A-cate-2 a {
  width: 31%;
}

.A-tags-2 a {
  width: 31%;
}

.A-banner {
  transform: scale(1.0);
  transform-origin: top left;
}

.A-card-thumb {
  width: 30%;
}
}

/*834px以下*/
@media screen and (max-width: 834px){
.category-item {
    max-width: 136px; /* 必要に応じて最大幅を設定 */
    max-height: 76px; /* 必要に応じて最大高さを設定 */
}

.tag-item {
    max-width: 136px; /* 必要に応じて最大幅を設定 */
    max-height: 76px; /* 必要に応じて最大高さを設定 */
}

.A-cate-2 a {
  width: 31%;
}

.A-tags-2 a {
  width: 31%;
}

.A-banner {
  transform: scale(1.0);
  transform-origin: top left;
}

.A-card-thumb {
  width: 35%;
}
}

/*480px以下*/
@media screen and (max-width: 480px){
.A-cate-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* 各カテゴリ間のスペース */
    justify-content: center; /* カテゴリー内のアイテムを中央揃え */
}

.A-tag-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* 各カテゴリ間のスペース */
    justify-content: center; /* カテゴリー内のアイテムを中央揃え */
}

.category-item {
    max-width: 80px; /* 必要に応じて最大幅を設定 */
    max-height: 45px; /* 必要に応じて最大高さを設定 */
}

.category-name {
    font-size: 10px;
}

.tag-item {
    max-width: 80px; /* 必要に応じて最大幅を設定 */
    max-height: 45px; /* 必要に応じて最大高さを設定 */
}

.tag-name {
    font-size: 10px;
}

.A-cate-2 a {
  width: 47%;
}

.A-tags-2 a {
  width: 47%;
}

.A-banner {
  transform: scale(1.0);
  transform-origin: top left;
}

.A-card-thumb {
  width: 40%;
}
}
