@charset "UTF-8";

/*!
Theme Name: Kame to Kusa Child
Description: kametokusa.com向けに記事の読みやすさ、成分表、広告表記を整えたCocoon子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.2.0
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
:root {
  --kame-ink: #243128;
  --kame-muted: #66746b;
  --kame-line: #dfe8df;
  --kame-bg: #f6f8f3;
  --kame-paper: #ffffff;
  --kame-leaf: #3f7d4a;
  --kame-leaf-dark: #2d5d38;
  --kame-sprout: #e7f2df;
  --kame-warn: #fff5d8;
  --kame-warn-line: #ead38a;
  --kame-shadow: 0 16px 40px rgba(36, 49, 40, .08);
}

body.kame-to-kusa {
  background: var(--kame-bg);
  color: var(--kame-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
}

.kame-to-kusa a {
  color: var(--kame-leaf-dark);
  text-underline-offset: .18em;
}

.kame-to-kusa a:hover {
  color: #1f462a;
}

.kame-to-kusa .header-container,
.kame-to-kusa .navi,
.kame-to-kusa .footer {
  background: var(--kame-paper);
}

.kame-to-kusa .header-container,
.kame-to-kusa .navi {
  border-bottom: 1px solid var(--kame-line);
}

.kame-to-kusa .site-name-text,
.kame-to-kusa .logo-text {
  color: var(--kame-leaf-dark);
  font-weight: 800;
}

.kame-to-kusa .navi-in a {
  color: var(--kame-ink);
  font-weight: 700;
}

.kame-to-kusa .navi-in a:hover {
  background: var(--kame-sprout);
  color: var(--kame-leaf-dark);
}

.kame-to-kusa .content-in {
  gap: 28px;
}

.kame-to-kusa .main,
.kame-to-kusa .sidebar {
  background: var(--kame-paper);
  border: 1px solid var(--kame-line);
  border-radius: 8px;
  box-shadow: var(--kame-shadow);
}

.kame-to-kusa .article {
  color: var(--kame-ink);
}

.kame-to-kusa .entry-title {
  color: var(--kame-ink);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.kame-to-kusa .date-tags,
.kame-to-kusa .entry-categories,
.kame-to-kusa .post-date,
.kame-to-kusa .post-update {
  color: var(--kame-muted);
}

.kame-to-kusa .article h2 {
  margin-top: 2.2em;
  margin-bottom: .9em;
  padding: .72em .9em .72em 1em;
  border: 0;
  border-left: 6px solid var(--kame-leaf);
  border-radius: 6px;
  background: linear-gradient(90deg, var(--kame-sprout), rgba(231, 242, 223, .35));
  color: var(--kame-leaf-dark);
  font-size: 1.42em;
  line-height: 1.45;
}

.kame-to-kusa .article h3 {
  margin-top: 1.8em;
  padding-bottom: .35em;
  border-bottom: 2px solid var(--kame-line);
  color: var(--kame-leaf-dark);
  font-size: 1.16em;
}

.kame-to-kusa .article p {
  margin: 1em 0;
}

.kame-to-kusa .article ul,
.kame-to-kusa .article ol {
  padding: 1em 1.2em 1em 1.6em;
  border-radius: 8px;
  background: #fbfcf8;
}

.kame-to-kusa .article li + li {
  margin-top: .45em;
}

.kame-to-kusa .wp-block-image {
  margin: 1.6em auto;
}

.kame-to-kusa .wp-block-image img {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(36, 49, 40, .12);
}

.kame-to-kusa figcaption {
  color: var(--kame-muted);
  font-size: .88em;
  text-align: center;
}

.kame-affiliate-notice {
  margin: 0 0 1.6em;
  padding: 1em 1.1em;
  border: 1px solid var(--kame-warn-line);
  border-radius: 8px;
  background: var(--kame-warn);
  color: #5c4b1f;
  font-size: .92em;
  line-height: 1.75;
}

.kame-nutrition-table {
  width: 100%;
  margin: 1.2em 0 1.6em;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--kame-line);
  border-radius: 8px;
  background: var(--kame-paper);
  box-shadow: 0 8px 24px rgba(36, 49, 40, .06);
}

.kame-nutrition-table caption {
  padding: .8em 1em;
  background: var(--kame-leaf-dark);
  color: #fff;
  font-weight: 800;
  text-align: left;
}

.kame-nutrition-table th,
.kame-nutrition-table td {
  padding: .78em 1em;
  border-top: 1px solid var(--kame-line);
  line-height: 1.55;
}

.kame-nutrition-table th {
  width: 42%;
  background: #f2f7ef;
  color: var(--kame-leaf-dark);
  font-weight: 800;
}

.kame-nutrition-table td {
  background: #fff;
}

.kame-to-kusa .toc,
.kame-to-kusa .widget,
.kame-to-kusa .related-entry-card,
.kame-to-kusa .a-wrap {
  border-color: var(--kame-line);
  border-radius: 8px;
}

.kame-to-kusa .toc-title,
.kame-to-kusa .widget-title,
.kame-to-kusa .related-entry-heading {
  color: var(--kame-leaf-dark);
  font-weight: 800;
}

.kame-to-kusa .cat-label,
.kame-to-kusa .tag-link,
.kame-to-kusa .entry-card-categorys a,
.kame-to-kusa .cat-link {
  border-radius: 999px;
  background: var(--kame-sprout);
  color: var(--kame-leaf-dark);
  font-weight: 700;
}

.kame-to-kusa .wp-block-button__link,
.kame-to-kusa .btn,
.kame-to-kusa .ranking-item-link-buttons a {
  border-radius: 6px;
  background: var(--kame-leaf);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(63, 125, 74, .22);
}

.kame-to-kusa .wp-block-button__link:hover,
.kame-to-kusa .btn:hover,
.kame-to-kusa .ranking-item-link-buttons a:hover {
  background: var(--kame-leaf-dark);
  color: #fff;
}

.kame-to-kusa .ad-area,
.kame-to-kusa .adsbygoogle,
.kame-to-kusa .widget-ad,
.kame-to-kusa .ad-unit {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .kame-to-kusa .content-in {
    gap: 18px;
  }

  .kame-to-kusa .main,
  .kame-to-kusa .sidebar {
    border-radius: 0;
    box-shadow: none;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .kame-to-kusa .entry-title {
    font-size: 1.55em;
  }

  .kame-to-kusa .article h2 {
    font-size: 1.22em;
  }

  .kame-to-kusa .article ul,
  .kame-to-kusa .article ol {
    padding-right: 1em;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  body.kame-to-kusa {
    line-height: 1.78;
  }

  .kame-to-kusa .article h2 {
    padding: .65em .75em;
  }

  .kame-affiliate-notice {
    font-size: .88em;
  }

  .kame-nutrition-table th,
  .kame-nutrition-table td {
    display: block;
    width: auto;
  }

  .kame-nutrition-table td {
    border-top: 0;
  }
}
