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

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
img {
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    -moz-touch-callout:none;
    -moz-user-select:none;
    user-select:none;
}
/* 目次の自動改行をなしにする */
.toc-content ol li {
  white-space: nowrap;           /* 改行を防ぐ */
}

/* ロゴを上部に配置 */
#header-container .logo-image {
  margin-top: -150px; /* 数値を調整してロゴを上に移動 */
}

/* フルスクリーン時、地図を画面全体に固定し、他の要素より前面に出す */
.leaflet-container.leaflet-fullscreen-on {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important; /* スマホの実際の表示領域に合わせる(対応ブラウザ優先) */
  z-index: 999999 !important;
}

.cstmreba .tomarebalink-image {
	width: 150px;
	height: 112px;
	float: left;
	margin: 0 14px 0 0;
	overflow: hidden;
	position: relative;
	background: #fff;
}
.cstmreba .tomarebalink-image a {
	display: block;
	width: 100%;
	height: 100%;
}
.cstmreba .tomarebalink-image img:last-of-type {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* アフィリエイトの画像表示の設定 */
@media screen and (max-width:768px){
	.cstmreba .booklink-image,
	.cstmreba .kaerebalink-image,
	.cstmreba .tomarebalink-image {
		width:100% !important;
		float:none !important;
		min-height: 200px !important;
		height: 200px !important;
		position: relative !important;
		overflow: hidden !important;
		display: block !important;
	}
}