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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/


.container {
  max-width: 960px;
  margin: 0 auto;
}


.entry-content {
  padding: 1.15em;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 1em;
  }
}

.notice-area {
  padding: 1.2em 1.5em;
  font-size: 1.1em;
  line-height: 1.7;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
	
}





/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

@media screen and (max-width: 768px) {
  .wp-block-media-text {
    flex-direction: row !important;
    align-items: center;
    padding: 1em 0;
    gap: 1em;
  }

  .wp-block-media-text .wp-block-media-text__media {
    width: 40% !important;
  }

  .wp-block-media-text .wp-block-media-text__content {
    width: 60% !important;
    font-size: 14px;
    line-height: 1.6;
  }
}

.footer,
.footer-bottom {
  font-size: 15px;
  line-height: 1.6;
}

/* 外側の背景：グリーン */
body {
  background-color: #e0f5e0 !important;
}

/* 中間レイヤー：白背景（Cocoonのcontainer） */
.container {
  background-color: #ffffff !important;
  padding: 20px;
}

/* 記事本文：グレー背景（Cocoonのentry-content） */
.entry-content {
  background-color: #f5f5f5 !important;
  padding: 20px;
  border-radius: 8px;
}

/* スマホ対応：画面幅768px以下に強制適用 */
@media screen and (max-width: 768px) {
  body {
    background-color: #e0f5e0 !important;
  }

  .container {
    background-color: #ffffff !important;
    padding: 16px;
  }

  .entry-content {
    background-color: #f5f5f5 !important;
    padding: 16px;
  }
}

/* テスト用：背景色を一時的に変えて確認 */
body {
  background-color: #ffe0e0 !important;
}

/* 🧩 Cocoonの親要素を中央寄せに整える */
.wrap,
.container,
#main,
.entry-content {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px;
  box-sizing: border-box;
  display: block !important;
  float: none !important;
  text-align: left;
}

