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


/* ==================================================
   1. 基本設定
================================================== */
html {
  font-family: -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-size: 62.5%;
  font-feature-settings: "palt";
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: #444;
  text-size-adjust: 100%;
  text-align: justify;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-size: 2.2rem;
  line-height: 1.5;
}

/* ==================================================
   2. レイアウト・フッター
================================================== */
#container {
  position: relative;
  margin-top: 70px;
}

.content {
  margin-top: 0;
}

#content-in {
  color: #444;
}

.footer {
  padding: 0;
}

#footer {
  background-color: #f2f0ee;
}

.footer-in {
  width: auto;
}

/* ==================================================
   3. 投稿タイトル・本文・見出し
================================================== */
.article-header .entry-title {
  font-size: 25px;
}

.entry-content,
.entry-content p {
  font-size: 22px;
  line-height: 1.5;
}

.entry-content h2,
.entry-content h3 {
  font-size: 23px;
}

.article h2,
.widget h2 {
  text-align: left;
  background: #f9f5f0;
}

.article h3 {
  display: block;
  margin-top: 0;
  margin-bottom: 0.8em;
  letter-spacing: 0;
  color: #444;
  border-color: #a8907a;
}

.article h3::before {
  content: none;
  padding: 0;
  border-left: 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1em;
}

.entry-content ul {
  list-style-type: disc;
}

.entry-content ol {
  list-style-type: decimal;
}

/* ==================================================
   4. リンク（本文中のリンクは青・下線）
================================================== */
/* その他の本文リンク（ブログカードなど）は従来どおり */
.entry-content a {
  color: #444;
  text-decoration: none;
}

/* 通常の段落内リンクを青＋下線にする */
.entry-content p a[href],
.entry-content p a[href]:visited {
  color: #1967d2 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* 既存のホバー動作を維持 */
a:hover {
  color: initial;
}

#content-in a:hover {
  background-color: #f9f5f0;
  transition: all 0.3s ease-in-out;
  color: #333;
}

.page-title_text h1 a:hover {
  color: #fff;
}

/* ==================================================
   5. 記事カード・ブログカード
================================================== */
.e-card-title {
  font-size: 22px;
}

.entry-card-content h2 {
  text-align: left;
}

.entry-card-wrap {
  border-bottom: 1px solid #eee;
}

#list .entry-card-wrap:nth-last-of-type(1) {
  border-bottom: 0;
}

.entry-content .blogcard-wrap .blogcard-content {
  color: #444;
  text-decoration: none;
}

.blogcard-footer {
  padding-top: 2%;
}

.blogcard-favicon img {
  vertical-align: middle;
}

/* ==================================================
   6. ウィジェット・メニュー
================================================== */
.body .wp-block-categories {
  margin-bottom: 0.9em;
}

.widget_block ul li a {
  padding-right: 4px;
  padding-left: 8px;
}

.menu-column-top a {
  display: block;
  padding: 10px 4px 10px 8px;
  color: var(--cocoon-text-color);
  text-decoration: none;
}

/* ==================================================
   7. Googleマップ・パスワード保護
================================================== */
.ggmap {
  position: relative;
  padding-bottom: 80%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.ggmap iframe,
.ggmap object,
.ggmap embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.post-password-form label {
  display: block;
  text-align: left !important;
  text-align-last: left !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

.post-password-form input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}

/* ==================================================
   8. PC：1100px以上
================================================== */
@media screen and (min-width: 1100px) {
  body {
    font-size: 1.75rem;
  }

  #container {
    margin-top: 0;
  }

  .wrap {
    width: 1080px;
  }

  .sidebar {
    width: 300px;
  }

  .main {
    width: 760px;
    padding: 0;
  }

  .article {
    padding: 0 1.5% 1.5%;
  }

  .entry-card-thumb {
    width: 250px;
  }

  .entry-card-content {
    margin-left: 270px;
  }

  .entry-card-content h2 {
    font-size: 20px;
  }

  .list {
    row-gap: 0;
  }

  .entry-content,
  .entry-content p {
    font-size: 20px;
    line-height: 1.5;
  }
}

/* ==================================================
   9. タブレット・スマートフォン：1099px以下
================================================== */
@media screen and (max-width: 1099px) {
  main.main,
  div.sidebar {
    display: block;
    width: auto;
    padding: 0 10px;
  }

  div.sidebar {
    width: 100%;
  }

  .header {
    height: auto;
  }

  .content-in {
    padding: 0 10px;
  }

  .widget h2 {
    font-size: 18px;
  }

  .entry-title {
    font-size: 20px;
    padding: 0;
  }
}

/* ==================================================
   10. スマートフォン：834px以下
================================================== */
@media screen and (max-width: 834px) {
  .blogcard-title {
    margin-bottom: 2%;
  }
}
