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

/*----------🔍画像拡大表示----------------*/
.image-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.image-container img {
    width: 100%;
    height: auto;
}
.image-container .overlay-text {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    opacity: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px; /* テキストとアイコンの間隔 */
}


/*------------バッヂ-----------------*/
.badge {
    display: inline-block;
    padding: 0.1rem 0.2rem;
    border-radius: 0.1rem;
    color: #fff; font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}
.bg-blue {background-color: #00b0b3;}
.bg-red {background-color: #e64d3c;}
.bg-green {background-color: #008057;}
.bg-yellow {background-color: #daa520;}
.bg-purple {background-color: #9a35cc;}
.bg-pink {background-color: #cc5490;}
.bg-gray {background-color: #808080;}
.bg-gray-2 {background-color: #5f9ea0;}

.badge_h {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin-right: 0.3rem;	
    border-radius: 0.2rem;
    color: #fff; font-size: 0.9rem;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}
.bg_h {background-color: #ccffe8;
			color: #004224;}
/************************************
** テーブル関係
************************************/
/* ✅ Gutenbergのデフォルトテーブルを横スクロール可能にする */
.wp-block-table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

/* ✅ テーブル自体の設定 */
.wp-block-table table {
    width: 100%;
    white-space: nowrap;
    border-collapse: collapse;
}

/* ✅ 左カラム（1列目）を固定 */
.wp-block-table table tbody td:first-child,
.wp-block-table table thead th:first-child {
    position: sticky;
    left: 0;
	background-color: #fff !important; /* 100%適用されるように */
    z-index: 9; /* 強制的に前面へ */
    border-right: 1px solid silver;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* 影を追加して浮き出させる */
}

/* ✅ スクロール固定時の左端セルの背景色を維持 */
.wp-block-table td:first-child,
.wp-block-table th:first-child {
    background-clip: padding-box; /* 背景色が重ならないようにする */	
    background-color: inherit; /* 親の背景色を継承 */

}
/* ✅ 横スクロールできることを知らせるラベル */
.scroll-hint {
    position: absolute;
    top: -25px; /* テーブルのすぐ上に表示 */
    left: 50%;
    transform: translateX(-50%);
    background: #ff9a00;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    
    /* フェードアウトアニメーションを遅延させる */
    animation: fadeOut 4s ease-out forwards;
    animation-delay: 1s; /* 1秒間そのまま表示 */
}

/* 2秒間停止 → 4秒間かけて消える */
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1081px){
  /*必要ならばここにコードを書く*/
	th, td {
	font-size: 11px !important;
    padding: 1px !important;
}
	ul, ol {    
    margin-left: 0; /* 左側のマージン */
    margin-bottom: 20px !important;
}
	li {    
    margin-left: 0; /* 左側のマージン */
    margin-bottom: 0 !important;
}	
	ul ul, ol ol {
    padding-left: 0; /* 階層ごとのインデントも調整 */
}
}

