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

/* お得エンジニア：サイト共通デザイン */
:root {
  --oe-ink: #202826;
  --oe-text: #565f5c;
  --oe-muted: #727a77;
  --oe-green: #286755;
  --oe-green-soft: #eef2ef;
  --oe-paper: #ffffff;
  --oe-bg: #f7f6f2;
  --oe-line: #deded8;
}

html { background: var(--oe-bg); }
body {
  color: var(--oe-text);
  background: var(--oe-bg) !important;
  line-height: 1.85;
}
a { color: var(--oe-green); }
a:hover { color: #174d3e; }

/* ヘッダー */
#header-container {
  background: var(--oe-paper) !important;
  border-bottom: 1px solid var(--oe-line);
}
#header-container-in { padding: 0 !important; }
#header {
  min-height: 0 !important;
  padding: 28px 20px 24px !important;
  color: var(--oe-ink) !important;
  background: var(--oe-paper) !important;
}
#header .header-in { min-height: 0 !important; }
#header .logo { padding: 8px 0 0 !important; }
#header .tagline {
  margin-bottom: 10px;
  color: var(--oe-muted) !important;
  font-size: 13px;
  letter-spacing: .02em;
}
#header .site-name-text {
  color: var(--oe-ink) !important;
  font-size: clamp(27px, 4vw, 36px);
  letter-spacing: .04em;
}

/* グローバルメニュー */
#navi {
  background: var(--oe-paper) !important;
  border-top: 1px solid #eeeeea;
  border-bottom: 1px solid var(--oe-line);
}
#navi .menu-pc > li { width: auto !important; }
#navi .navi-in a {
  padding: 0 20px !important;
  color: #34413d !important;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
#navi .navi-in a:hover,
#navi .current-menu-item > a,
#navi .current-category-ancestor > a {
  color: #245f4f !important;
  background: var(--oe-green-soft) !important;
}

/* 全ページを読みやすい1カラムに統一 */
#content { margin-top: 38px; }
.content-in { display: block; }
.main {
  width: 100%;
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  padding: 42px;
  float: none;
  color: var(--oe-text);
  background: var(--oe-paper);
  border: 1px solid #e4e3dd;
  border-radius: 0;
  box-shadow: none;
}
.sidebar { display: none !important; }

/* 記事・一覧 */
.article h1,
.list-title {
  margin-bottom: 30px;
  padding: 0 0 18px !important;
  color: var(--oe-ink);
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--oe-line) !important;
  box-shadow: none !important;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.5;
}
.entry-content h2 {
  margin: 52px 0 24px;
  padding: 24px 0 0 !important;
  color: var(--oe-ink);
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--oe-line) !important;
  box-shadow: none !important;
}
.entry-content h3 {
  margin: 38px 0 18px;
  padding: 0 0 0 14px !important;
  color: var(--oe-ink);
  background: transparent !important;
  border: 0 !important;
  border-left: 3px solid #6e8e83 !important;
  box-shadow: none !important;
}
.entry-content p { line-height: 2; }
.entry-card-wrap {
  margin-bottom: 22px;
  background: var(--oe-paper);
  border: 0;
  border-bottom: 1px solid var(--oe-line);
  border-radius: 0;
  box-shadow: none;
}
.entry-card-wrap:hover { background: #fafaf7; }
.breadcrumb { color: var(--oe-muted); }

/* ボタン・フォーム */
button,
input[type="submit"],
.wp-block-button__link {
  border-radius: 2px !important;
}
input[type="text"],
input[type="search"],
input[type="email"],
textarea {
  border: 1px solid #cfd2ce;
  border-radius: 2px;
}

.footer { background: #25302d !important; }
.footer, .footer a { color: #eef1ef !important; }

@media screen and (max-width: 834px) {
  #header { padding: 24px 16px 20px !important; }
  #header .tagline { font-size: 11px; line-height: 1.7; }
  #content { margin-top: 16px; }
  .main {
    padding: 28px 20px 38px;
    border-right: 0;
    border-left: 0;
  }
  .article h1, .list-title { font-size: 28px; }
}

/* 追加CSSより優先してレイアウトを統一 */
body.body { background: #f7f6f2 !important; }
body.body .content-in { display: block !important; }
body.body .main {
  width: 100% !important;
  max-width: 980px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 42px !important;
  float: none !important;
  background: var(--oe-paper) !important;
  border: 1px solid #e4e3dd !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.body .sidebar { display: none !important; }
body.body .article h1,
body.body .list-title {
  padding: 0 0 18px !important;
  color: var(--oe-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--oe-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media screen and (max-width: 834px) {
  body.body .main {
    padding: 28px 20px 38px !important;
    border-right: 0 !important;
    border-left: 0 !important;
  }
}
