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

/* ==========================================
   せつびLABO
   Cocoon Child 統合CSS
   TOPページ右サイドバー対応
   エコキュート画像ボタン見切れ修正版
========================================== */


/* ==========================================
   1. ヘッダー共通
========================================== */

#header-container,
#header,
#navi {
  background: #ffffff !important;
}

/* 以前の独自検索窓を非表示 */
#header .setsubi-header-search {
  display: none !important;
}


/* ==========================================
   2. PCヘッダー
   中央ロゴ＋下段メニュー
========================================== */

@media screen and (min-width: 1025px) {

  #header-container-in {
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
  }

  #header {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  #header .header-in {
    width: 100% !important;
    max-width: 1300px !important;
    min-height: 80px !important;
    height: auto !important;

    margin: 0 auto !important;
    padding: 12px 20px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #header .header-in .logo {
    width: auto !important;
    height: auto !important;

    margin: 0 auto !important;
    padding: 0 !important;

    text-align: center !important;
  }

  #header .header-in .logo > a {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
  }

  #header .header-in .logo img {
    display: block !important;
    width: auto !important;
    max-width: 300px !important;
    max-height: 300px !important;
    height: auto !important;

    margin: 0 auto !important;
    object-fit: contain !important;
  }

  #navi {
    width: 100% !important;
    margin: 0 !important;
  }

  #navi .navi-in {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
  }

  #navi .navi-in > ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  #navi .navi-in > ul > li > a {
    color: #17304b !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    padding: 12px 20px !important;
    background: transparent !important;
  }

  #navi .navi-in > ul > li > a:hover {
    color: #0874d1 !important;
    background: #f0f8ff !important;
  }
}


/* ==========================================
   3. スマホ・タブレット
   Cocoon標準メニューを維持
========================================== */

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

  #header .header-in {
    height: auto !important;
    min-height: 0 !important;

    padding: 10px 15px !important;
    box-sizing: border-box !important;
  }

  #header .header-in .logo {
    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
  }

  #header .header-in .logo > a {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
  }

  #header .header-in .logo img {
    display: block !important;

    width: auto !important;
    max-width: 260px !important;
    height: auto !important;
    max-height: 60px !important;

    margin: 0 auto !important;
    object-fit: contain !important;
  }
}


/* ==========================================
   4. TOPページ 基本設定
========================================== */

.home .entry-title {
  display: none !important;
}

.home .sns-share {
  display: none !important;
}

.home .date-tags,
.home .post-date,
.home .post-update {
  display: none !important;
}

.home .entry-content {
  margin-top: 0 !important;
}

.home .article {
  padding-top: 0 !important;
}


/* ==========================================
   5. TOPページ
   左メイン＋右サイドバー
========================================== */

@media screen and (min-width: 1025px) {

  .home .content-in {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 30px !important;

    width: calc(100% - 40px) !important;
    max-width: 1400px !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  .home #main {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
  }

  .home .article {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
  }

  .home #sidebar {
    display: block !important;

    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
  }
}


/* ==========================================
   6. TOPページ
   スマホは1カラム
========================================== */

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

  .home .content-in {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  .home #main {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 15px !important;

    box-sizing: border-box !important;
  }

  .home .article {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .home #sidebar {
    width: 100% !important;
    max-width: 100% !important;

    margin: 30px auto 0 !important;
    padding: 0 15px !important;

    box-sizing: border-box !important;
  }
}


/* ==========================================
   7. TOPページ画像共通
========================================== */

.home .entry-content img {
  max-width: 100%;
  height: auto;
}


/* ==========================================
   8. 新着記事 見出し
========================================== */

.labo-new-heading {
  max-width: 1100px;
  margin: 80px auto 30px;
  text-align: center;
}

.labo-new-heading span {
  display: block;
  margin-bottom: 5px;

  color: #1688e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.labo-new-heading h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;

  border: none !important;
  background: none !important;

  color: #102c46;
  font-size: 28px;
  font-weight: 800;
}

.labo-new-heading h2::before,
.labo-new-heading h2::after {
  display: none !important;
}

.labo-new-heading p {
  margin: 0;
  color: #71808f;
  font-size: 13px;
}

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

  .labo-new-heading {
    margin-top: 55px;
  }

  .labo-new-heading h2 {
    font-size: 23px;
  }
}


/* ==========================================
   9. 関連記事リンク
========================================== */

.labo-related {
  margin: 28px 0;
  padding: 20px 24px;

  background: #f3f8fc;
  border-left: 4px solid #2486c4;
  border-radius: 8px;
}

.labo-related p {
  margin: 0 0 12px;
}

.labo-related ul {
  margin: 0;
  padding-left: 22px;
}

.labo-related li {
  margin: 8px 0;
  line-height: 1.7;
}

.labo-related a {
  color: #1769aa;
  font-weight: 600;
  text-decoration: underline;
}

.labo-related a:hover {
  color: #e76c24;
}

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

  .labo-related {
    padding: 16px;
  }
}


/* ==========================================
   10. 現場のプロのひとこと
========================================== */

.labo-pro-voice {
  margin: 28px 0;
  padding: 22px 24px;

  background: #f0f8ff;
  border: 1px solid #b7d9f4;
  border-left: 5px solid #0875c9;
  border-radius: 12px;

  color: #263746;
}

.labo-pro-voice__title {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 14px;

  color: #0875c9;
  font-size: 17px;
  font-weight: 700;
}

.labo-pro-voice__title::before {
  content: "🔧";
  font-size: 23px;
}

.labo-pro-voice p {
  margin: 0 0 12px;
  line-height: 1.9;
}

.labo-pro-voice p:last-child {
  margin-bottom: 0;
}

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

  .labo-pro-voice {
    padding: 18px 16px;
  }

  .labo-pro-voice__title {
    font-size: 16px;
  }
}


/* ==========================================
   11. ごりらぼ画像対応
========================================== */

.labo-pro-voice__body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.labo-pro-voice__mascot {
  width: 125px;
  flex: 0 0 125px;
}

.labo-pro-voice__mascot img {
  display: block;
  width: 100%;
  height: auto;
}

.labo-pro-voice__comment {
  flex: 1;
  min-width: 0;
}

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

  .labo-pro-voice__body {
    gap: 12px;
  }

  .labo-pro-voice__mascot {
    width: 85px;
    flex-basis: 85px;
  }
}


/* ==========================================
   12. サイドバーの見た目
========================================== */

#sidebar .widget {
  margin-bottom: 28px;
}

#sidebar .widget-title {
  padding: 12px 15px !important;

  color: #17304b !important;
  background: #f0f7fd !important;

  border-left: 4px solid #1688e8 !important;
  border-radius: 4px !important;

  font-size: 16px !important;
  font-weight: 800 !important;
}

#sidebar a {
  color: #17304b;
  text-decoration: none;
}

#sidebar a:hover {
  color: #1688e8;
}


/* ==========================================
   13. 横はみ出し防止
========================================== */

.home #main,
.home #sidebar,
.home .article {
  min-width: 0;
}

.home .entry-content img {
  max-width: 100%;
  height: auto;
}


/* ==========================================
   14. エコキュート選びガイド
   見出し画像＋6枚の画像ボタン
========================================== */

/* ガイド全体 */
.home .labo-illustrated-guide {
  margin: 25px 0 35px;
  padding: 12px 14px 18px;

  background: #f3f9fd;
  border-radius: 16px;
  box-sizing: border-box;
}

/* 見出し画像のエリア */
.home .labo-guide-heading {
  margin: 0 0 14px;
  padding: 0;
  text-align: center;
}

/* 見出し画像 */
.home .labo-guide-title-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;

  margin: 0 auto;
  padding: 0;

  border: none;
  border-radius: 12px;
  box-shadow: none;
}

/* 画像ボタンの並び */
.home .labo-guide-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;

  width: 100%;
  min-width: 0;
}

/* 画像ボタンのリンク */
.home .labo-guide-images a {
  display: block;
  min-width: 0;
  height: auto;

  overflow: hidden;
  border-radius: 10px;
  background: transparent;

  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);

  transition: transform .2s, box-shadow .2s;
}

/* マウスを重ねた時 */
.home .labo-guide-images a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, .12);
}

/* 画像は切り抜かず、元の比率で表示 */
.home .labo-guide-images img {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;

  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;

  margin: 0 !important;
  padding: 0 !important;

  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* スマホ・タブレット */
@media screen and (max-width: 800px) {

  .home .labo-illustrated-guide {
    margin: 18px 0 28px;
    padding: 8px 8px 12px;
    border-radius: 12px;
  }

  .home .labo-guide-heading {
    margin-bottom: 10px;
  }

  .home .labo-guide-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home .labo-guide-images a {
    border-radius: 8px;
  }
}

/* 小さいスマホも2列 */
@media screen and (max-width: 380px) {

  .home .labo-guide-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

/* キーボード操作時 */
.home .labo-guide-images a:focus-visible {
  outline: 3px solid #1688e8;
  outline-offset: 3px;
}

/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {

  .home .labo-guide-images a {
    transition: none;
  }

  .home .labo-guide-images a:hover {
    transform: none;
  }
}


/* TOPページの横幅を最大1400pxまで広げる */
@media screen and (min-width: 1025px) {

  body.home #content {
    width: 100% !important;
    max-width: none !important;
  }

  body.home #content .content-in {
    width: calc(100% - 40px) !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

}
