/*
  Skin Name: KF集会図鑑スキン
  Description: かずきが開発中の集会図鑑用のスキンです。
  Skin URI: https://kf-syuukai-zukan.com/
  Author: かずき
  Author URI: https://nelog.jp/
  Screenshot URI: https://im-cocoon.net/wp-content/uploads/skin-template.png
  Version: 1.0.2
  Priority: 9999000000
*/
/*以下にスタイルシートを記入してください*/

@charset "UTF-8";


/************************************
** 1. 全般・基本設定
************************************/
/* 表（テーブル） */
table tr:nth-of-type(2n + 1) {/* 縞々背景の解除 */
  background-color: inherit;
}
.wp-block-table thead {/* 横線の太さ */
  border-bottom: 1.5px solid var(--cocoon-middle-thickness-color);/* 元は3 */
}
.wp-block-table tfoot {/* 横線の太さ */
  border-top: 1.5px solid #ccc;/* 元は3 */
}
.scrollable-table th, .scrollable-table.stfc-sticky table:not(.wp-calendar-table) tr > *:first-child {/* 左の列の色 */
  background-color: #f5f6f7;
  color: var(--cocoon-text-color);
}

/* cocoonブロックのデザイン変更 */
@media screen and (max-width: 834px) {
  .container .wp-block-cocoon-blocks-column-2.column-wrap {/* cocoonブロック2カラムのデザイン変更 */
      gap: 0em;/* 元は1.8 */
  }
}
.speech-person {/* cocoonブロック吹き出しのデザイン変更 */
  width: 18%;/* 元は12 */
  min-width: 18%;
}
@media screen and (max-width: 480px){
  .speech-person {/* 元は16 */
    width: 25%;
    min-width: 25%;
  }
}

/* 記事のデザイン変更 */
.main {
  padding: 19px 0;
  background-color: inherit;
}
.entry-categories-tags, .entry-title, .entry-content, .archive-title {
  padding: 0 30px;
}
.article {/* 記事全体*/
	background-color: var(--cocoon-white-color);
	padding-top: 10px;/* 元は0px */
}
.article h2.wp-block-heading, .article h3.wp-block-heading, .article h4.wp-block-heading, .article h5.wp-block-heading, .article h6.wp-block-heading {
    margin-bottom: 0.8em;
}
.breadcrumb {/* パンくずリストのデザイン変更 */
	padding: 0;
    margin: 1em 1em;/* 元は1em 0.4em */
    color: var(--cocoon-x-pallid-text-color);
    font-size: 13px;

}
.date-tags {
  margin-bottom: 0;
}
@media screen and (max-width: 1255px) {
    .main, .sidebar, .sidebar-left .main, .sidebar-left .sidebar {
        margin: 0;
    }
}
@media screen and (max-width: 1023px) {
    main.main, div.sidebar {
        margin: 0;
    }
	.article.post{
		margin-right: 25px;
		padding: 25px 0;
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); /* 右下方向への影 */
	}
}
@media screen and (max-width: 834px) {
  div.content {/* 記事上の余白変更 */
    margin-top: 0;/* 元は10px */
  }
  main.main {
	margin: 0;/* 元は12px 0px */
	padding: 0;/* 元は32px 16px */
  }
.entry-categories-tags, .entry-title, .archive-title {
    padding: 0 25px;
  }

}
@media screen and (max-width: 480px) {
  .entry-title {
    font-size: 25px;/* 元は20 */
    padding: 0.2em 0.8em;/* 元は0.6em、0.8em */
  }
}


/************************************
** 2. ヘッダー・トップページ要素
************************************/
/* ヘッダーコンテナ自体の設定 */
.header-container {
  overflow-x: hidden;
  background-image: linear-gradient(white calc(100% - 30px), rgba(0, 0, 0, 0.4) 0);/* 下から30pxの位置で透明に切り替える */
}
.header-container-in {
  position: relative;
  margin-bottom: 30px !important; /* 電光掲示板の高さ(30px)分、下に余白を作って重なりを防ぐ */
}

/* 電光掲示板の「帯」をheader-containerの直下に配置 */
.header-container-in::after, .mobile-header-menu-buttons::after {
  content: "";
  position: absolute;
  top: 100%; /* 親要素のすぐ下に配置 */
  left: 0;
  width: 100%;
  height: 30px;
  box-sizing: border-box;
  z-index: 999;
}
/* 電光掲示板の「流れる文字」を配置 */
.header-container-in::before, .mobile-header-menu-buttons::before {
  content: var(--ticker-text) var(--ticker-text) var(--ticker-text); /* 3回繰り返して隙間を埋める */
  position: absolute;
  top: 100%;
  left: 0;
  height: 30px;
  line-height: 30px;
  color: #fff;
  white-space: nowrap;
  z-index: 1000;
  font-size: 14px;
  pointer-events: none; /* 下にあるリンクなどを邪魔しない */
  animation: ticker-move 20s linear infinite;
}
@keyframes ticker-move {/* アニメーション：1つ分の文章が左に消えたらループ */
  0% { transform: translateX(0);
  }
  100% { transform: translateX(-33.3333%); /* 3つ並べたうちの1つ分が移動したタイミング（-33.33%）でループ */
  }
}
@media screen and (max-width: 1023px) {/* ヘッダー下はモバイルでは非表示 */
  .header-container-in::after, .header-container-in::before{
		display: none;
	}
  .mobile-header-menu-buttons::after {
  background-color:rgba(0, 0, 0, 0.4) ;
  }
}


/* カルーセルのデザイン */
.carousel-in.wrap {
  background-color: inherit; /* 全体の背景色を解除 */
}
.carousel{
	margin: 0;
}
.carousel-content .slick-track {
  padding: inherit;
}
.carousel-entry-card {
  background-color: #ffffff; /* カードの背景色 */
}
.carousel-entry-card-wrap {
  border-radius: 0px !important; /* 角の丸み */
  overflow: hidden !important;
}

.carousel-entry-card-content.card-content{/* 記事情報の非表示 */
	display: none;
}

/************************************
** 3. 記事一覧（エントリーカード）共通設定
************************************/

/* カードの余白調整（カルーセルと3列リスト） */
.carousel .a-wrap,
.ect-3-columns .entry-card-wrap {
  padding: 0;
}

/* サムネイル画像の余白をリセット */
.carousel-entry-card-thumb,
.related-entry-card-thumb,
.widget-entry-card-thumb,
.entry-card-thumb {
  margin: 0;
}

/* 記事情報のテキストエリアの余白 */
.entry-card-content.card-content.e-card-content,
.carousel-entry-card-content,
.related-entry-card-content,
.widget-entry-card-content {
  padding: 0.5em;
}

/* カルーセル内のタイトル余白をリセット */
.carousel-entry-card-title {
  margin: 0;
}

/************************************
** 記事一覧のカスタマイズ
************************************/

/* カードの外側の余白（隣のカードとの間隔） */
div.list.ect-3-columns .entry-card-wrap {
  margin: 0 !important;
  padding: 10px !important; /* ここでカード同士の距離を調整 */
  box-sizing: border-box !important;
  border: none !important;
  background: none !important;
  float: left !important;
}

/* PC・タブレット時の3列表示維持 */
@media screen and (min-width: 481px) {
  div.list.ect-3-columns .entry-card-wrap {
    width: 33.333% !important;
  }
}

/* スマホ時の2列表示維持と余白調整 */
@media screen and (max-width: 480px) {
  .list {
    padding: 0 1%;
  }
  div.list.ect-3-columns .entry-card-wrap {
    width: 49% !important;
    padding: 5px !important;
  }
}

/* カード本体のデザイン（影・角丸・枠線） */
div.list.ect-3-columns article.entry-card {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 20px !important; /* 角の丸み */
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1) !important; /* 影の深さ */
  overflow: hidden !important;
  height: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.3s ease !important; /* アニメーションの速度 */
}

/* サムネイル画像の角丸を解除（カード全体で角丸を表現するため） */
.entry-card-thumb {
  overflow: hidden ;
}
div.list.ect-3-columns .entry-card-thumb-image {
  border-radius: 0 !important;
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1) !important; /* 拡大アニメーションを滑らかにする */
}

/* カテゴリラベルの配置調整（左下に配置） */
.entry-card-thumb span.cat-label {
  font-weight: 500;
  top: inherit !important;
  left: 0 !important;
  border: inherit !important;
  border-radius: 0 !important;
  padding: 2px 5px 1px 10px !important;
}

/* ホバー（マウスを乗せたとき）の動き */
div.list.ect-3-columns .entry-card-wrap:hover article.entry-card {
  transform: translateY(-5px) !important; /* 上に浮き上がる動き */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important; /* 影を強くする */
  border-color: #cccccc !important;
}
/* ホバー時に画像を拡大させる設定 */
div.list.ect-3-columns .entry-card-wrap:hover .entry-card-thumb-image {
  transform: scale(1.5) !important; /* 1.5倍に拡大 */
}

/************************************
** ユーザーアーカイブのカスタマイズ
************************************/
/* ユーザーアーカイブの画像スタイル */
.archive-title img.avatar {
  width: 80px; /* 好みの大きさに調整してください */
  height: 80px; /* widthと同じ値にする */
  border-radius: 50%; /* 丸くする */
  vertical-align: middle; /* 横の文字と高さを合わせる */
  margin-right: 5px;  /* アイコンと名前の間の余白 */
  object-fit: cover;   /* 画像が歪まないように保護 */
  /* border: 1px solid #ddd;*/
}
/* ユーザーアーカイブのプロフィール文のスタイル */
.archive-author-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color:;
  background:;
  padding: 15px;
  border-radius: 5px;
}


/************************************
** 画面右上のインデックス
************************************/
/* 1023px以下の端末でのみ表示 */
@media screen and (max-width: 1023px) {
  .chapter-indicator {
    position: fixed;
    top: 50px;
    right: 0px;
    width: 25px;
    max-height: 450px; /* 必要に応じて調整 */
    background-color: rgba(0, 0, 0, 0.4); /* 背景色：黒の透過 */
    color: #fff;
    font-size: 14px;
    padding: 60px 0px 30px;
    writing-mode: vertical-rl; /* 縦書き */
    text-orientation: mixed;
    z-index: 9999;
    border-radius: 0 0 15px 0;
    display: none; /* 初期状態は非表示（JSで表示制御） */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; /* 長い場合に「...」で省略 */
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); /* 右下方向への影 */
    /* pointer-events: none;  クリックを邪魔しない */
  }
}