@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){
  /*必要ならばここにコードを書く*/
}

/*コード表示のフォント変更*/
.entry-content pre{font-family: Consolas, Monaco, monospace;}

/** コードのフォントを変更 */
.entry-content code {
    font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
	font-size: 90%;
}

/** Cocoon スキン「イノセンス」カスタム */

/** 背景を変更 */

body{
background-image: none;
}

/** PageSpeed accessibility: LINE brand green needs dark caption text. */
.sns-share .line-button .button-caption {
  color: #111;
}

/** Reserve archive-card image space before lazy-loaded thumbnails arrive. */
.entry-card-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/** External product images have inconsistent intrinsic dimensions. */
.entry-content img[src*="cdn.suruga-ya.jp"] {
  width: min(280px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/** Reserve article ad space so delayed ads do not shift the content. */
body.single .ad-area {
  min-height: 280px;
}
body.single .adsbygoogle {
  min-height: 250px;
}
/* Meet WCAG contrast targets for breadcrumbs and the article table of contents. */
.breadcrumb-caption {
  color: #666 !important;
}

.toc-title {
  color: #8a4f00 !important;
}
/* Sidebar search form: keep the submit button readable instead of the unstyled default (Issue #948). */
.search-box.input-box {
  display: flex;
  align-items: stretch;
  gap: 0.5em;
}
.search-box.input-box input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.search-box.input-box button[type="submit"] {
  flex: 0 0 auto;
  min-width: 4.5em;
  padding: 0.5em 1em;
  border: 1px solid var(--cocoon-thin-color, #ccc);
  border-radius: var(--cocoon-basic-border-radius, 4px);
  background: #f5f8fa;
  color: #333;
  font-size: inherit;
  cursor: pointer;
}
