@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    0.0.5
*/

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

.MathJax_Display {
  text-align: left !important;
  text-indent: 0em !important;
}

/*フロント固定ページのタイトルを非表示*/
.home.page .entry-title{
  display: none;
}

/* ２カラムの設定 */
/*768px以下*/
@media screen and (max-width: 768px){
  .column-wrap{
    flex-direction: row;
  }
}
/*480px以下*/
@media screen and (max-width: 480px){
  .column-wrap{
    flex-direction: row;
  }
}

/* 画像に枠線を付ける */
img.wk {
    border: solid 3px #FFF; /* 枠線のスタイル 太さ 色 */
}

.marker-b {
	background: linear-gradient(transparent 60%, #d9e5ed 0%);
}
.sidebar h3 {
    background: #054769;
    color: #ffffff;
    padding: 2px;
    font-size: 16px; /*文字サイズを小さく*/	
    text-align: center;
}

/* アイキャッチサイズ変更 */
.eye-catch img{
	width: 450px;
}

/*ルビの設定*/
rt {
    text-align: center; /* 文字列のセンタリング */
    font-size: 75%; /* フォントサイズを一回り大きく：元の文字の75%の大きさに */
}

/*リンクの下線消す*/
.noline {text-decoration:none}

.box1 {
    position: relative;
    margin: 2em 0;
    padding: 30px 10px 7px;
    border: solid 1.5px #83aac3;
	width: 100%;
	max-width:500px;
}
.box1 .box-title {
    position: absolute;
    display: inline-block;
    top: -2px;
    left: -2px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    vertical-align: middle;
    font-size: 1em;
    background: #054769;
    color: #ffffff;
    font-weight: bold;
}
.box1 p {
    margin: 0; 
    padding: 0;
}

.box2 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 1.5px #83aac3;
    border-radius: 8px;
	width: 100%;
	max-width:500px;
}
.box2 .box-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 0 9px;
    line-height: 1;
    font-size: 1.1em;
	background: #FFF;
    color: #054769 ;
    font-weight: bold;
}
.box2 p {
    margin: 0; 
    padding: 0;
}

.box3{
    margin: 0.5em ;
    padding: 0 1em;
    background: white;
    color: #054769;
	border: solid 1.5px #054769;
    display: inline-block;
}
.box3 p {
    margin: 0; 
    padding: 0;
}

.box4 {
    padding: 0.5em 1em;
    margin: 2em 0;
    background: #ffffff;
	border: solid 1.5px #054769;
    border-left: solid 10px #054769;
	max-width:500px;
}
.box4 p {
    margin: 0; 
    padding: 0;
}

.box5 {
    position: relative;
    margin: 2em 0;
    padding: 30px 10px 7px;
    border: solid 1.5px #FF9900;
	width: 100%;
	max-width:280px;
}
.box5 .box-title {
    position: absolute;
    display: inline-block;
    top: -2px;
    left: -2px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    vertical-align: middle;
    font-size: 1em;
    background: #FF9900;
    color: #ffffff;
    font-weight: bold;
}
.box5 p {
    margin: 0; 
    padding: 0;
}


.box8 {
    position: relative;
    margin: 1em 0;
    padding: 0.5em 1em;
    border: solid 0.5px #054769;
	width: 100%;
	max-width:600px;
}
.box8 p {
    margin: 0; 
    padding: 0;
}

.box7{
    margin: 1em ;
    padding: 0.5em 1em;
    background: white;
    color: #56686e;
	border: solid 0.5px #56686e;
    display: inline-block;
	font-size:  90%;
}
.box7 p {
    margin: 0; 
    padding: 0;
}

.box9 {
    position: relative;
    margin: 0em 0;
    padding: 0em 0em;
    border: solid 1.5px #fff;
    border-radius: 8px;
	width: 100%;
	max-width:500px;
}
.box9 p {
    margin: 0; 
    padding: 0;
}

.box6{
    margin: 0.5em 1em 0.5em 1em ;
    padding: 0.1em 0.5em;
    background: #fff;
    color: #054769;
	border: solid 1px #83aac3;
	border-left: solid 5px #054769;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
	font-size:  80%;
}
}
.box6 p {
    margin: 0; 
    padding: 0;
}

/* 次ページへボタン（単独版） */
.nextpage-btn {
  display: inline-block;        /* 左寄せ＆ボタン幅は中身に合わせる */
  margin: 0.3em 0 0.8em 0;      /* 上下の余白を少し詰めた */
  padding: 0.6em 1em;           /* ボタン内の余白を少し小さめに */
  border: 2px solid #054769;
  border-radius: 8px;           /* 少しだけ角丸を小さめに調整 */
  color: #054769;
  background: #fff;
  font-weight: 600;
  font-size: 0.95em;            /* 本文より少し小さめ */
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  transition: .2s ease-in-out;
}

/* hoverで反転 */
.nextpage-btn:hover {
  background: #054769;
  color: #fff;
}



/* エントリーカードラベル非表示 */
.entry-card .cat-label{
  display: none;
}

/*デフォルトのサイトタイトルサイズ*/
.site-name-text{
  font-size: 38px;
}


/*端末幅が768px以下のとき*/
@media screen and (max-width: 768px){
  #header .site-name-text{
    font-size: 28px;
  }
}

/*端末幅が480px以下のとき*/
@media screen and (max-width: 480px){
  #header .site-name-text{
    font-size: 24px;
  }
}

/*目次*/
.toc {
    border: 1px solid #83aac3; /*全体の枠線の色*/
    font-size: 0.9em;
    line-height: 1.5;
    padding: 0;
    margin-bottom: 1em;
    display: block; /*横幅いっぱいに広げる*/
}
.toc-title {
    background: #054769; /*目次タイトルの背景色*/
    color: #fff; /*目次タイトルの文字色*/
    font-size: 1.1em;
    text-align: center;
    padding: 6px 16px;
}
.toc-title::before {
    font-family: FontAwesome;
    content: '\f0ca'; /*目次タイトルのアイコン*/
    margin-right: 0.5em;
}
.toc-content {
    padding: 8px;
}

/*見出し*/
.article h2 {
    padding: 0;
    background: none;
}
.article h3 {
    border: none;
    padding: 0;
}
.article h2 {
	font-size: 1.3em;
	color: #054769;
	line-height: 1.6;
	border-bottom: 3px solid #83aac3;
}
.article h3 {
	border-left: 5px solid #83aac3;
	padding: 0 0 0 10px ;
	line-height: 1.5;
	font-size: 1.15em;
	color: #054769;
}

.article h4 {
    border: none;
    padding: 0;
}
.article h4 {
  border-top: solid 1px #054769;/*上線*/
  border-bottom: solid 1px #054769;/*下線*/
	padding: 0.3em 0;
	font-size: 0.8 em;
	color: #054769;
}


/*スライドイン*/
.navi-menu-button{
   display:none;
}

.sidebar-menu-button {
	position: relative;
}
.mobile-menu-buttons .sidebar-menu-caption {
	display: none;
}
.sidebar-menu-icon::after {
	content: 'メニュー';
	font-size: 12px;
	position: absolute;
	top: 1.9em; /* 高さの微調整 */
	left: 0;
	right: 0;
}
.mobile-menu-buttons .home-menu-button > a {
	color: #054769;
}
.search-menu-button {
	color: #054769;
}
.mobile-menu-buttons .top-menu-button > a {
	color: #054769;
}
.sidebar-menu-button {
	color: #054769;
}

/*テーブル*/
table {
  margin-bottom: 20px;
  max-width: 100%;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
table th {
  background-color: #f9fdff;
}
table tr:nth-of-type(2n+1) {
  background-color: #fafbfc;
}
table th,
table td {
  border: 1px solid #83aac3;
  padding: 6px;
}
/*480px以下*/
@media screen and (max-width: 480px){
  .article th, .article td {
    font-size: 13px;}
}

/*ブログカード*/
.blogcard {
	padding: 0.7rem;
	color: #054769;
	position: relative;
	border-color: #83aac3 !important; /* 枠線の色を変更 */
}

a.blogcard-wrap:hover{
	background-color: transparent!important;
	opacity: 0.8;
}

.blogcard-thumbnail {
	line-height: 0;
	margin-right: 1rem;
	overflow: hidden;
}

.blogcard-title{
	font-size: 1.1em;
	margin-bottom: .5rem;
}

@media screen and (max-width: 480px){
	.blogcard-thumbnail{
		width: 40%;
	}}

.internal-blogcard::after{
	content: '続きを読む \00bb'; /* 内部リンク右下枠の文言 */
	position: absolute;
	bottom: .5rem;
	right: 1rem;
	font-size: 80%;
	background-color: #054769; /* 内部リンク右下枠の背景色 */
	padding: .4em 3em;
	font-weight: bold;
	color: #fff; /* 内部リンク右下枠の文字色 */
	border-radius: 2px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1240px以下*/
@media screen and (max-width: 1240px){
  /*必要ならばここにコードを書く*/
}

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
#main .sns-share a {
	height: 2em;
	margin-left: 0.2em;
}
.sns-share-buttons {
	justify-content: center;
}	
#main .button-caption {
	font-size: 12px;
}
#main .social-icon {
	font-size: 15px;
}

}






:root{
  --rx-row-h: 120px;     /* 行の高さ */
  --rx-gap: 14px;
  --rx-border: #054769;
  --rx-text-dim: #56686e;
}

/* 包み（必要なら任意） */
.rx-wrap{ width:100%; overflow-x:hidden; }

/* 行：48 : 4 : 48（gapを考慮しても横に収まる） */
.rx-row{
  display:grid;
  grid-template-columns: 49fr 2fr 49fr;
  column-gap: var(--rx-gap);
  align-items:stretch;
  height: var(--rx-row-h);   /* 縦固定 */
  width:100%;
}

/* 2行のまま行間を詰める */
.rx-row .col.mid.tight{
	line-height:1.0;  /* 0.95〜1.1で微調整 */
}

/* カラム共通 */
.rx-row > .col{ height:100%; display:flex; }
.rx-row > .col.left,
.rx-row > .col.right{ text-align:center; }
.rx-row > .col.mid{
  text-align:center; color:var(--rx-text-dim);
  align-items:center; justify-content:center;
}

/* 1枠版：横いっぱいの単枠（高さは --rx-row-h を継承） */
.rx-single{
  display:flex;
  height: var(--rx-row-h);     /* 例: 120px に設定済み */
  width: 100%;
}
.rx-single > .col{
  flex: 1 1 auto;
  display:flex;
}
.rx-single .boxD{
  min-height: var(--rx-row-h);
}
.rx-single .boxD.fill{
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
/* 画像サイズはこれまで通り、HTMLの width を優先 */
.rx-single .boxD img{
  max-width:none;
  height:auto;
  max-height: calc(var(--rx-row-h) - 56px);
  object-fit: contain;
}


/* 枠：boxD（!important で上書き競合を回避） */
.boxD{
  position:relative;
  margin:0;
  padding:0.5em 1em;
  border:1px solid var(--rx-border) !important;  /* 枠が消える対策 */
  border-radius:8px !important;
  width:100%;
  max-width:none;
  box-sizing:border-box;
  background:#fff; /* 背景指定（テーマで透過だと見えづらい） */
  min-height: var(--rx-row-h);  /* 閉じても縮まない */
}
.boxD.fill{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* 指定した枠だけタイトル行間を極小化 */
.boxD.tight summary span{ line-height: 1.05; display:inline-block; }
.boxD.tight br{ line-height: 0; }
.boxD.tight summary{ padding-top: .25em; padding-bottom: .25em; }

/* details/summary */
.boxD details{ width:100%; }
.boxD summary{ list-style:none; cursor:pointer; }
.boxD summary::-webkit-details-marker{ display:none; }






/* 白抜きバッジ（未表示） */
.badge {
  background:#fff;
  color:#56686e;
  border:1px solid #56686e;
  border-radius:8px;
  padding:1.8px 7px;
  font-weight:500;
  margin:0 0.2em;
  vertical-align:baseline;
  line-height:1.2;
}
/* 表示後 */
.badge--on {
  color:#054769;
  border-color:#054769;
  font-weight:700;
}
/* バッジの文字サイズは親と同じに固定（テーマのspan指定を打ち消す） */
.badge{ font-size: 1em; line-height: 1.2; display:inline-block }

/* Cocoon等で .entry-content span に指定がある場合に備えて強めに */
.entry-content .badge{ font-size: 1em !important }

/* バッジ内の要素があればサイズ継承 */
.badge *{ font-size: inherit; line-height: inherit }

/* コントロール配置はそのまま */
.badge-controls{
  margin:8px 0 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}



/* 目次ボタンに“サイズを合わせた”表示・非表示ボタン */
.badge-btn{
  display:inline-block;
  /* .toc-back と同じサイズ感 */
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 700;

  /* 配色は白抜きにしない（アウトライン調） */
  color:#054769;                 /* 文字色：メインカラー */
  background:#fff;               /* 白背景 */
  border:1px solid #043a57;      /* .toc-back と同じ太さ・色系統 */
  border-radius:3px;             /* 角丸も合わせる */
  text-decoration:none;
  cursor:pointer;
}

.badge-btn:hover{
  background:#f5f7fb;            /* うっすらハイライト */
}

.badge-btn:focus-visible{
  outline:2px solid #9fb3bf;     /* キーボード操作の視認性 */
  outline-offset:2px;
}


.toc-back {
	display: inline-block;
	margin: 0.5rem 0 0;          /* 上余白を縮小 */
	padding: 0.25rem 0.6rem;     /* 余白を小さく */
	background: #054769;         /* メインカラー */
	color: #fff;                 /* 白抜き文字 */
	border: 1px solid #043a57;   /* 枠は細めのまま */
	border-radius: 3px;          /* 角丸を小さく */
	text-decoration: none;
	font-size: 0.85rem;          /* 文字サイズを小さく */
	font-weight: 700;            /* 太字 */
	line-height: 1.2;            /* 高さを詰める */
}

/* ホバー時 */
.toc-back:hover {
	background: #043a57;
	color: #fff;
	text-decoration: none;
}

/* フォーカス可視化（小さめ） */
.toc-back:focus-visible {
	outline: 2px solid #77c9ff;
	outline-offset: 2px;
}

/* ページ全体のスムーススクロール（据え置き） */
html { scroll-behavior: smooth; }




/* ふりがな付き */
/* 閉時（元サイズ固定） */
.badge.badge--2line{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:1.8px 7px !important;
  line-height:1.2 !important;
  vertical-align:baseline;
  gap:0;
}

/* 開時：上だけ伸ばし、位置は相殺で固定（1px版） */
.badge.badge--2line.badge--on{
  padding-top:1px !important;
  padding-bottom:1.8px !important; /* 下端固定 */
  margin-top:-1px !important;      /* 相殺（同値） */
  justify-content:flex-end !important; /* 下寄せ */
}

/* ふりがな極小・答え縮小 */
.badge.badge--2line .badge2-top{
  font-size:0.48em !important; /* 0.48→0.46 と段階調整OK */
  line-height:1 !important;
  letter-spacing:0.01em;
  margin:0;
}
.badge.badge--2line .badge2-bottom{
  line-height:1.0 !important;
}
.badge.badge--2line.badge--on .badge2-bottom{
  font-size:0.98em !important;  /* 0.88〜0.92 で微調整 */
}

/* 開時の基線位置を少し上げる（数値は環境で±） */
.badge.badge--2line.badge--on{
  vertical-align: 11px;   /* まずは -2px。合わなければ -1 ～ -3px で微調整 */
}


/* mini_card 全体リンク化（前面オーバーレイ＋中身透過） */
.yk-miniCard3{ position:relative; overflow:hidden; } /* 念のため */
.yk-miniCard3__overlay{
  position:absolute;
  inset:0;
  z-index:5;               /* 最前面に */
  display:block;
  border-radius:10px;      /* 枠と同角丸 */
  text-decoration:none;
}
.yk-miniCard3__inner{
  position:relative;
  z-index:1;
  pointer-events:none;     /* 中身はクリックを透過 → オーバーレイが受ける */
}

/* 視覚フィードバック（オーバーレイのhover/focusで内側に反映） */
.yk-miniCard3__overlay:hover + .yk-miniCard3__inner,
.yk-miniCard3__overlay:focus-visible + .yk-miniCard3__inner{
  box-shadow: 0 0 0 2px rgba(5,71,105,.15) inset;
}
.yk-miniCard3__overlay:focus-visible{
  outline:2px solid #054769;
  outline-offset:2px;
}

.yk-miniCard3__overlay:hover + .yk-miniCard3__inner{
  background:rgba(5,71,105,.03);
  box-shadow:none;
}