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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ========== flex レイアウト調整 ========== */
.flex-container,
.flex-container2 {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  margin-top: 20px !important;
}


.flex-item {
  flex: 0 1 120px;
  margin: 10px;
}

.flex-item2 {
  flex: 1 1 45%;
  max-width: 200px;
  margin: 10px;
}

.circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.circle img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .flex-item2 {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .circle {
    width: 60px;
    height: 60px;
  }
}

/* 固定幅の修正 */
.text512,
.text512r,
.text1024r,
.column1080,
.article h2,
.article h3 {
  width: 100%;
  max-width: 1080px;
  margin: 20px auto;
  padding: 0 12px;
  box-sizing: border-box;
}

/* box-sizing 適用 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 見出し h2 の横幅をレスポンシブに修正 */
.article h2 {
    width: auto !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
    padding: 15px !important;
    background-color: var(--cocoon-xx-thin-color) !important;
    border-radius: var(--cocoon-badge-border-radius) !important;
    box-sizing: border-box;
}

/* h3 以下も横幅制限を解除 */
.article h3,
.article h4,
.article h5,
.article h6 {
    width: auto !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
    padding: 10px !important;
    box-sizing: border-box;
}

/* PC表示のとき見出し幅を制限 */
@media (min-width: 768px) {
  .article h2 {
    max-width: 1050px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .article h3,
  .article h4,
  .article h5,
  .article h6 {
    max-width: 1050px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


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

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

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

/*グローバルメニューのフォントサイズ等変更*/
.navi-in .menu-header .item-label{
font-size: 12px;
}


