@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){
  /*必要ならばここにコードを書く*/
}
/* トップページだけ、Cocoonが自動表示するタイトル・日付類を消す */
.home.page .entry-title,
.home.page .date-tags,
.home.page .post-date,
.home.page .post-update,
.home.page .author-info,
.home.page .sns-share,
.home.page .sns-follow {
  display: none;
}

/* トップページの本文だけ少し狭くする */
.home.page #main {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
/* 通常の記事だけ読みやすい幅にする */
.single-post #main {
  width: 840px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
/* ヘッダーメニューを少し離して押しやすく */
#navi .navi-in > ul {
  gap: 10px;
}

/* 各メニューに余白をつける */
#navi .navi-in > ul > li > a {
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

/* マウスを置いたときだけ薄く色をつける */
#navi .navi-in > ul > li > a:hover {
  background-color: #f3f1ed;
}
#navi .navi-in > ul > li + li {
  border-left: 1px solid #e6e0d7;
}
/* PCのヘッダーメニューを4項目きれいに表示 */
@media screen and (min-width: 769px) {

  #navi .navi-in > ul {
    display: flex;
    justify-content: center;
    gap: 0;
  }

  #navi .navi-in > ul > li {
    width: auto;
    flex: 0 0 auto;
    border-left: 1px solid #e6e0d7;
  }

  #navi .navi-in > ul > li:last-child {
    border-right: 1px solid #e6e0d7;
  }

  #navi .navi-in > ul > li > a {
    width: auto;
    min-width: 0;
    padding: 16px 28px;
    font-size: 15px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    border-radius: 0;
  }

  #navi .navi-in > ul > li > a:hover {
    background-color: #f3f1ed;
  }
}
/* ==================================================
   全体：ブログ感を減らして、シンプルなWebメディア風に
   ================================================== */

/* 背景 */
body {
  background-color: #f6f5f2;
  color: #303336;
}

/* 記事本体 */
.single-post .article,
.page .article {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: none;
}

/* パンくずを少し控えめに */
.breadcrumb {
  font-size: 12px;
  color: #8b9093;
}

/* 投稿日・更新日などを控えめに */
.date-tags,
.post-date,
.post-update {
  color: #929699;
  font-size: 12px;
}


/* ==================================================
   記事見出し
   Cocoonっぽい「大きな色付き見出し」を弱める
   ================================================== */

.entry-content h2 {
  background: transparent !important;
  color: #303336 !important;
  border: none !important;
  border-bottom: 1px solid #dedbd4 !important;
  padding: 0 0 10px !important;
  margin-top: 2.8em;
  border-radius: 0 !important;
  font-weight: 700;
}

.entry-content h2::before,
.entry-content h2::after {
  display: none !important;
}

.entry-content h3 {
  background: transparent !important;
  color: #303336 !important;
  border: none !important;
  border-left: 3px solid #b49545 !important;
  padding: 3px 0 3px 13px !important;
  border-radius: 0 !important;
  font-weight: 700;
}

.entry-content h4 {
  background: transparent !important;
  border: none !important;
  color: #43474a !important;
  padding: 0 !important;
  font-weight: 700;
}


/* ==================================================
   本文
   ================================================== */

.entry-content p {
  line-height: 1.95;
}

.entry-content a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}


/* ==================================================
   ボタン
   ================================================== */

/* WordPress標準ボタン、Cocoonボタンなどを統一 */
.entry-content .wp-block-button__link,
.entry-content .btn-wrap > a,
.entry-content a.btn,
.entry-content .button,
.entry-content input[type="submit"] {
  background: #383c3e !important;
  color: #ffffff !important;
  border: 1px solid #383c3e !important;
  border-radius: 7px !important;

  padding: 11px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;

  box-shadow: none !important;
  text-decoration: none !important;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

/* hover */
.entry-content .wp-block-button__link:hover,
.entry-content .btn-wrap > a:hover,
.entry-content a.btn:hover,
.entry-content .button:hover,
.entry-content input[type="submit"]:hover {
  background: #9a7b32 !important;
  border-color: #9a7b32 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}


/* ==================================================
   検索ボタンも統一
   ================================================== */

.search-submit,
.wp-block-search__button {
  background: #383c3e !important;
  color: #fff !important;
  border: 1px solid #383c3e !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.search-submit:hover,
.wp-block-search__button:hover {
  background: #9a7b32 !important;
  border-color: #9a7b32 !important;
}


/* ==================================================
   入力欄
   ================================================== */

input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  border: 1px solid #d8d5cf !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #9a7b32 !important;
  outline: none;
}


/* ==================================================
   ボックス類
   ================================================== */

.entry-content .blank-box,
.entry-content .information-box,
.entry-content .question-box,
.entry-content .alert-box,
.entry-content .memo-box,
.entry-content .comment-box {
  border-radius: 7px !important;
  box-shadow: none !important;
}


/* ==================================================
   テーブル
   ================================================== */

.entry-content table {
  border-collapse: collapse;
  border: 1px solid #dedbd4;
}

.entry-content th {
  background: #f4f2ee;
  color: #383c3e;
  font-weight: 700;
}

.entry-content th,
.entry-content td {
  border-color: #dedbd4 !important;
}


/* ==================================================
   引用
   ================================================== */

.entry-content blockquote {
  background: #f8f7f4 !important;
  border: none !important;
  border-left: 3px solid #b9a46a !important;
  border-radius: 0 !important;
  color: #555b5e;
  box-shadow: none !important;
}
/* =========================================================
   ドイツ生活、はじめました
   Cocoon 全体デザイン仕上げ
   「ブログ」より生活ガイド／Webメディア寄りに
   ========================================================= */


/* =========================================================
   1. サイト全体
   ========================================================= */

body {
  background-color: #f6f5f2;
  color: #303336;
}

/* リンクの動きを自然に */
a {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}


/* =========================================================
   2. 一般記事のカード
   ※トップページにはほぼ影響させない
   ========================================================= */

.single-post #main {
  width: 840px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.single-post .article {
  background: #ffffff;
  border: none;
  border-radius: 9px;
  box-shadow: none;
}


/* =========================================================
   3. 記事上部：パンくず
   ========================================================= */

.single-post .breadcrumb {
  margin-bottom: 20px;
  font-size: 12px;
  color: #92979a;
}

.single-post .breadcrumb a {
  color: #858b8e;
  text-decoration: none;
}

.single-post .breadcrumb a:hover {
  color: #8f7434;
}


/* =========================================================
   4. 記事タイトル
   ========================================================= */

.single-post .entry-title {
  margin-top: 0;
  margin-bottom: 10px;

  color: #303336;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}


/* =========================================================
   5. 日付・更新日
   右端にポツンと置かず、タイトル下のメタ情報に
   ========================================================= */

.single-post .date-tags {
  display: flex;
  justify-content: flex-start !important;
  align-items: center;
  gap: 12px;

  margin-top: 0;
  margin-bottom: 24px;

  color: #95999b;
  font-size: 11px;
}

.single-post .post-date,
.single-post .post-update {
  color: #95999b;
  font-size: 11px;
}

/* 時計アイコンなども弱く */
.single-post .date-tags .fa,
.single-post .date-tags .fas,
.single-post .date-tags .far {
  color: #aaa;
}


/* =========================================================
   6. 本文
   ========================================================= */

.single-post .entry-content {
  color: #35383a;
  font-size: 16px;
  line-height: 1.95;
}

.single-post .entry-content p {
  margin-top: 0;
  margin-bottom: 1.65em;
  line-height: 1.95;
}


/* =========================================================
   7. 本文リンク
   真っ青な「ブログリンク」感を少し弱める
   ========================================================= */

.single-post .entry-content a:not(.btn):not(.wp-block-button__link) {
  color: #466479;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.single-post .entry-content a:not(.btn):not(.wp-block-button__link):hover {
  color: #8f7434;
}


/* =========================================================
   8. H2
   Cocoon標準の大きな色付き見出しをやめる
   ========================================================= */

.single-post .entry-content h2 {
  margin-top: 2.8em;
  margin-bottom: 1.1em;

  padding: 0 0 10px !important;

  background: transparent !important;
  color: #303336 !important;

  border: none !important;
  border-bottom: 1px solid #dedbd4 !important;
  border-radius: 0 !important;

  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;

  box-shadow: none !important;
}

.single-post .entry-content h2::before,
.single-post .entry-content h2::after {
  display: none !important;
}


/* =========================================================
   9. H3
   小さなゴールド線だけ
   ========================================================= */

.single-post .entry-content h3 {
  margin-top: 2.3em;
  margin-bottom: 0.9em;

  padding: 2px 0 2px 13px !important;

  background: transparent !important;
  color: #34383a !important;

  border: none !important;
  border-left: 3px solid #b39750 !important;
  border-radius: 0 !important;

  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;

  box-shadow: none !important;
}


/* =========================================================
   10. H4
   ========================================================= */

.single-post .entry-content h4 {
  margin-top: 2em;
  margin-bottom: 0.8em;

  padding: 0 !important;

  background: transparent !important;
  color: #464a4c !important;

  border: none !important;

  font-size: 17px;
  font-weight: 700;
}


/* =========================================================
   11. ボタン
   ここがかなり重要
   ========================================================= */

.single-post .wp-block-button__link,
.single-post .btn-wrap > a,
.single-post a.btn,
.single-post .button,
.single-post input[type="submit"],
.page .wp-block-button__link,
.page .btn-wrap > a,
.page a.btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;

  padding: 11px 22px !important;

  background: #383c3e !important;
  color: #ffffff !important;

  border: 1px solid #383c3e !important;
  border-radius: 7px !important;

  box-shadow: none !important;

  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  letter-spacing: 0.02em;

  text-decoration: none !important;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.single-post .wp-block-button__link:hover,
.single-post .btn-wrap > a:hover,
.single-post a.btn:hover,
.single-post .button:hover,
.single-post input[type="submit"]:hover,
.page .wp-block-button__link:hover,
.page .btn-wrap > a:hover,
.page a.btn:hover {

  background: #967832 !important;
  border-color: #967832 !important;
  color: #ffffff !important;

  transform: translateY(-1px);
}


/* ボタン内アイコン */
.single-post .btn-wrap a .fa,
.single-post .btn-wrap a .fas,
.single-post .btn-wrap a .far {
  margin-left: 7px;
}


/* =========================================================
   12. Cocoonの派手な色付きボタンも強制的に統一
   ========================================================= */

.single-post .btn-wrap[class*="red"] a,
.single-post .btn-wrap[class*="blue"] a,
.single-post .btn-wrap[class*="green"] a,
.single-post .btn-wrap[class*="orange"] a,
.single-post .btn-wrap[class*="pink"] a {
  background: #383c3e !important;
  border-color: #383c3e !important;
}

.single-post .btn-wrap[class*="red"] a:hover,
.single-post .btn-wrap[class*="blue"] a:hover,
.single-post .btn-wrap[class*="green"] a:hover,
.single-post .btn-wrap[class*="orange"] a:hover,
.single-post .btn-wrap[class*="pink"] a:hover {
  background: #967832 !important;
  border-color: #967832 !important;
}


/* =========================================================
   13. 検索フォーム
   ========================================================= */

.search-box input[type="text"],
.search-box input[type="search"],
.wp-block-search__input {
  border: 1px solid #d8d5cf !important;
  border-radius: 6px !important;
  background: #ffffff;
  box-shadow: none !important;
}

.search-submit,
.wp-block-search__button {
  padding: 9px 17px !important;

  background: #383c3e !important;
  color: #ffffff !important;

  border: 1px solid #383c3e !important;
  border-radius: 6px !important;

  box-shadow: none !important;

  font-size: 13px;
  font-weight: 600;
}

.search-submit:hover,
.wp-block-search__button:hover {
  background: #967832 !important;
  border-color: #967832 !important;
}


/* =========================================================
   14. 通常のフォーム
   ========================================================= */

.single-post input[type="text"],
.single-post input[type="email"],
.single-post input[type="search"],
.single-post textarea,
.single-post select {

  border: 1px solid #d8d5cf !important;
  border-radius: 6px !important;

  background: #ffffff;

  box-shadow: none !important;
}

.single-post input:focus,
.single-post textarea:focus,
.single-post select:focus {
  border-color: #a28b58 !important;
  outline: none !important;
}


/* =========================================================
   15. Cocoonのボックス類
   派手な「ブログ装飾」を抑える
   ========================================================= */

.single-post .blank-box,
.single-post .information-box,
.single-post .question-box,
.single-post .alert-box,
.single-post .memo-box,
.single-post .comment-box {

  border-radius: 7px !important;
  box-shadow: none !important;

  font-size: 15px;
  line-height: 1.8;
}


/* 情報系 */
.single-post .information-box,
.single-post .memo-box {
  background: #f7f7f4 !important;
  border-color: #d9d8d1 !important;
}

/* 注意系 */
.single-post .alert-box {
  background: #fff9ed !important;
  border-color: #e2ca8b !important;
}

/* 質問系 */
.single-post .question-box {
  background: #f5f7f7 !important;
  border-color: #d6dcdd !important;
}


/* =========================================================
   16. 引用
   ========================================================= */

.single-post .entry-content blockquote {
  margin: 1.8em 0;
  padding: 16px 20px;

  background: #f8f7f4 !important;
  color: #555b5e;

  border: none !important;
  border-left: 3px solid #b9a46a !important;
  border-radius: 0 !important;

  box-shadow: none !important;
}

.single-post .entry-content blockquote::before,
.single-post .entry-content blockquote::after {
  opacity: 0.15;
}


/* =========================================================
   17. テーブル
   ========================================================= */

.single-post .entry-content table {
  width: 100%;

  border-collapse: collapse;

  border: 1px solid #dedbd4;

  font-size: 14px;
}

.single-post .entry-content th {
  background: #f3f2ee !important;
  color: #373b3d;

  font-weight: 700;
}

.single-post .entry-content th,
.single-post .entry-content td {
  padding: 10px 12px;

  border-color: #dedbd4 !important;

  vertical-align: top;
}


/* zebraをかなり薄く */
.single-post .entry-content tr:nth-child(even) td {
  background: #fbfbf9;
}


/* =========================================================
   18. 目次
   ========================================================= */

.single-post .toc,
.single-post #toc {
  margin-top: 28px;
  margin-bottom: 36px;

  padding: 18px 20px;

  background: #faf9f6 !important;

  border: 1px solid #dedbd4 !important;
  border-radius: 8px !important;

  box-shadow: none !important;
}

.single-post .toc-title {
  margin-bottom: 10px;

  color: #3e4244;

  font-size: 15px;
  font-weight: 700;
}

.single-post .toc a {
  color: #535a5e;
  text-decoration: none;
}

.single-post .toc a:hover {
  color: #8f7434;
}


/* =========================================================
   19. リスト
   ========================================================= */

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin-top: 1em;
  margin-bottom: 1.7em;
}

.single-post .entry-content li {
  margin-bottom: 0.45em;
  line-height: 1.85;
}


/* =========================================================
   20. 水平線
   ========================================================= */

.single-post .entry-content hr {
  margin: 2.5em 0;

  border: none;
  border-top: 1px solid #dedbd4;
}


/* =========================================================
   21. カテゴリー・タグ
   ========================================================= */

.single-post .cat-link,
.single-post .tag-link,
.single-post .entry-category a,
.single-post .entry-tags a {

  padding: 3px 8px;

  background: #f1f0ec !important;
  color: #626769 !important;

  border: none !important;
  border-radius: 4px !important;

  font-size: 11px;

  text-decoration: none !important;
}

.single-post .cat-link:hover,
.single-post .tag-link:hover,
.single-post .entry-category a:hover,
.single-post .entry-tags a:hover {

  background: #e7e3d9 !important;
  color: #55492d !important;
}


/* =========================================================
   22. アイキャッチ
   ========================================================= */

.single-post .eye-catch-wrap {
  margin-top: 18px;
  margin-bottom: 28px;
}

.single-post .eye-catch-wrap img {
  border-radius: 7px;
}


/* =========================================================
   23. アフィリエイト・PR表記などの注意ボックス
   強い枠を弱める
   ========================================================= */

/* Cocoon：記事冒頭のPR・アフィリエイト表記 */
.single-post .pr-label.pr-label-l {
  margin: 14px 0 24px !important;
  padding: 7px 11px !important;

  background: #faf9f6 !important;
  color: #777b7d !important;

  border: 1px solid #e3e0da !important;
  border-radius: 5px !important;

  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;

  text-align: center !important;
  box-shadow: none !important;
}


/* =========================================================
   24. 前の記事・次の記事
   ========================================================= */

.single-post .pager-post-navi {
  margin-top: 50px;

  border-top: 1px solid #dedbd4;
}

.single-post .pager-post-navi a {
  background: transparent !important;
  box-shadow: none !important;
}

.single-post .pager-post-navi a:hover {
  background: #f7f6f2 !important;
}


/* =========================================================
   25. 関連記事
   ========================================================= */

.single-post .related-entry-card {
  border: none !important;
  box-shadow: none !important;
}

.single-post .related-entry-card:hover {
  background: #f8f7f4;
}


/* =========================================================
   26. SNSボタン
   派手な丸ボタン感を少し抑える
   ========================================================= */

.single-post .sns-buttons a {
  box-shadow: none !important;
  border-radius: 6px !important;
}


/* =========================================================
   27. スマホ
   ========================================================= */

@media screen and (max-width: 768px) {

  .single-post #main {
    width: auto;
    max-width: none;
  }

  .single-post .article {
    border-radius: 0;
  }

  .single-post .entry-title {
    font-size: 24px;
    line-height: 1.5;
  }

  .single-post .entry-content {
    font-size: 15px;
  }

  .single-post .entry-content h2 {
    margin-top: 2.4em;

    font-size: 22px;
  }

  .single-post .entry-content h3 {
    font-size: 18px;
  }

  .single-post .wp-block-button__link,
  .single-post .btn-wrap > a,
  .single-post a.btn {

    width: 100%;

    padding: 12px 16px !important;
  }

}
.affiliate-notice {
  margin: 16px 0 24px;
  padding: 8px 12px !important;

  background: #fbfbfa !important;
  color: #777 !important;

  border: 1px solid #e4e1dc !important;
  border-radius: 5px !important;

  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;

  box-shadow: none !important;
}

.affiliate-notice p {
  margin: 0 !important;
}
/* 記事内ボタンを中央寄せ */
.single-post .wp-block-button,
.single-post .btn-wrap,
.page .wp-block-button,
.page .btn-wrap {
  text-align: center !important;
  justify-content: center !important;
}

/* 念のためボタン本体も中央に */
.single-post .wp-block-button__link,
.single-post .btn-wrap > a,
.page .wp-block-button__link,
.page .btn-wrap > a {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* 記事本文の行間・段落間を少し詰める */
.single-post .entry-content {
  line-height: 1.75 !important;
}

.single-post .entry-content p {
  line-height: 1.75 !important;
  margin-bottom: 1.2em !important;
}