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

/* 共通ボックス */
.box-title{
  font-weight:700;
  margin-bottom:8px;
}

.kekuron-box,
.koukai-box,
.genin-box,
.kaizen-box,
.checklist-box{
  padding:18px;
  margin:28px 0;
  border-radius:10px;
  line-height:1.9;
}

/* 結論 */
.kekuron-box{
  background:#f2f7ff;
  border-left:5px solid #3b82f6;
}

/* 後悔 */
.koukai-box{
  background:#fff5f5;
  border-left:5px solid #ef4444;
}

/* 原因 */
.genin-box{
  background:#fffbea;
  border-left:5px solid #eab308;
}

/* 解決策（収益導線） */
.kaizen-box{
  background:#f0fdf4;
  border-left:5px solid #22c55e;
}

/* チェックリスト */
.checklist-box{
  background:#f9fafb;
  border:1px dashed #9ca3af;
}

.next-reading{
  margin-top:60px;
  padding:20px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:12px;
}

.next-reading h3{
  margin-bottom:12px;
  font-size:18px;
}

.next-reading ul{
  padding-left:18px;
}

.next-reading li{
  margin:8px 0;
}

.auto-cta{
  margin:40px 0;
  padding:26px;
  background:linear-gradient(135deg,#ecfeff,#f0fdf4);
  border-radius:14px;
  text-align:center;
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
}

.cta-text{
  font-size:18px;
  font-weight:700;
  margin-bottom:12px;
}

.cta-button{
  display:inline-block;
  background:#16a34a;
  color:#fff;
  padding:14px 28px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  transition:0.2s;
}

.cta-button:hover{
  transform:translateY(-2px);
  background:#15803d;
}

.cta-note{
  font-size:12px;
  margin-top:10px;
  color:#6b7280;
}

.home-guide{
  max-width:900px;
  margin:40px auto;
  padding:20px;
}

.guide-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:20px;
}

.guide-card{
  display:block;
  padding:22px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  text-decoration:none;
  color:#111;
  transition:.2s;
}

.guide-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* ===== 共通カード ===== */
.mynote-card{
  background:#f7f8fa;
  border-radius:12px;
  padding:20px 22px;
  margin:34px 0;
  position:relative;
  line-height:1.9;
  box-shadow:0 2px 6px rgba(0,0,0,0.04);
}

/* 左アクセントライン */
.mynote-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:6px;
  height:100%;
  border-radius:12px 0 0 12px;
}

/* タイトル */
.mynote-title{
  font-weight:700;
  font-size:18px;
  margin-bottom:10px;
  letter-spacing:.04em;
}

/* 本文 */
.mynote-body{
  font-size:15.5px;
}


/* ===== セクションカラー ===== */

.kekuron::before{ background:#3AAFA9; }
.koukai::before{ background:#F67280; }
.genin::before{ background:#C06C84; }
.kijun::before{ background:#355C7D; }
.kaizen::before{ background:#6C9A8B; }
.check::before{ background:#F8B500; }
.matome::before{ background:#4A4A4A; }

/* ===== 目次ジャンプ位置補正 ===== */
.mynote-card{
  scroll-margin-top: 90px;
}

@media (max-width:768px){
  .mynote-card{
    scroll-margin-top: 70px;
  }
}

/* 見出し直下の余白 */
.article h2 + .mynote-card{
  margin-top:18px;
}

/* 目次下の余白を確保 */
.toc{
  margin-bottom:28px;
}

@media (max-width:768px){

  .mynote-card{
    padding:16px 16px;
    margin:26px 0;
    border-radius:10px;
  }

  .mynote-title{
    font-size:16px;
  }

  .mynote-body{
    font-size:14.8px;
    line-height:1.85;
  }
}

.article .mynote-card:first-of-type{
  margin-top:38px;
}

[check]
<ul>
<li>コンセント位置を図面で確認した</li>
<li>洗濯動線を歩いてシミュレーションした</li>
<li>収納の中に入れる物を決めた</li>
<li>家具サイズを測った</li>
</ul>
[/check]

/* ===== チェックリスト ===== */
.checklist ul{
  list-style:none;
  padding:0;
  margin:0;
}

.checklist li{
  position:relative;
  padding:14px 14px 14px 44px;
  margin:10px 0;
  background:#ffffff;
  border-radius:10px;
  border:1px solid #e5e7eb;
  transition:.2s;
}

/* チェック丸 */
.checklist li::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid #F8B500;
  background:#fff;
}

/* ホバー */
.checklist li:hover{
  background:#fffaf0;
  transform:translateY(-1px);
}

/* スマホ押しやすさ */
@media (max-width:768px){
  .checklist li{
    padding:16px 12px 16px 46px;
    font-size:15px;
  }
}

@media print{
  .checklist li{
    border:1px solid #000;
    background:#fff;
  }

  .checklist li::before{
    border:2px solid #000;
  }
}


/* タイトル直下プロフィール */
.mn-top-profile{
  background:#f7fbff;
  border:1px solid #d8e6f3;
  border-left:4px solid #4aa3df;
  padding:18px 20px;
  margin:20px 0 30px;
  border-radius:6px;
  font-size:0.95em;
  line-height:1.7;
}

/* 見出し部分 */
.mn-top-profile strong{
  font-size:1.05em;
}

/* リンク */
.mn-top-profile a{
  color:#2a7db8;
  font-weight:bold;
  text-decoration:none;
}

.mn-top-profile a:hover{
  text-decoration:underline;
}
