/* =========================
  おそうじ豆知識
  最小整理版CSS
========================= */

/* =========================
   フォント（小塚ゴはアドビフォント、Zen Maru GothicはGoogle Fontsから）
========================= */

.section-title,
.card h3{
  font-family: "kozuka-gothic-pro", "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.03em;
}

/* =========================
   ヒーロー
========================= */
.osouji-hero{
  display: block;
  text-align: center;
}
.osouji-hero img{
  display: block;
  margin: 0 auto 30px;
}

/* =========================
   グリッド
========================= */

.card-container{
  display: grid;
  gap: 20px;
  align-items: start;
}

/* カラム */
.card-container.col-1{
  grid-template-columns: 1fr;
}

.card-container.col-3{
  grid-template-columns: repeat(3, 1fr);
}

.card-container.col-4{
  grid-template-columns: repeat(4, 1fr);
}


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

  .card-container.col-3{
    grid-template-columns: 1fr;
  }

  .card-container.col-4{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

}
/* =========================
   カード共通
========================= */

.card{
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFF;

  border: 1px solid #cbddce;
  border-radius: 8px;

  padding: 16px;

  text-decoration: none;


  transition: 0.2s;
}

.card:hover{
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
  background: #e8f5e9;
}


/* テキスト */
.card h3{
  font-size: 18px;
  margin: 0;
  color: #3F5F3F;
}

.card p{
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #777;
}


/* =========================
   メインカード
========================= */

.card-main{
  grid-column: auto; /* ←これ重要 */
  background: #f9fcf9;
}


/* =========================
   画像（共通）
========================= */

.card_img{
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  opacity: 0.5;
  transition: transform .3s;
}

.card:hover .card_img{
  transform: rotate(12deg) scale(1.1);
  opacity: 0.7;

}

/* =========================
   サブカード
========================= */

.card-sub{
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.card-sub h3{
  font-size: 15px;
}


/* サブアイコン（36px固定） */
.card-sub-icon{
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  opacity: 0.5;
}


/* =========================
   グループアニメ
========================= */

.card-group{
  margin-bottom: 40px;

  opacity: 0;
  transform: translateX(-40px);
  transition: all .8s cubic-bezier(.16,1,.3,1);
}

.card-group.is-show{
  opacity: 1;
  transform: translateX(0);
}


/* =========================
   セクション
========================= */

.tips{
  margin-bottom: 60px;
}


/* =========================
   cta
========================= */
.cta-tips .cta-bubble-wrap {
  display:block;
}

/* キャラクター */
.cta-tips .character {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

/* 吹き出し */
.cta-tips .speech-bubble {
  position: relative;
  background: #fff;

  padding: 40px;
  border-radius: 50px;
  max-width: 400px;
}

/* 吹き出しの三角（右側に向ける） */
.cta-tips .speech-bubble::before,
.cta-tips .speech-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
}

.cta-tips .speech-bubble::before {
  content: "";
  position: absolute;
  right: -35px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 20px;
  border-style: solid;
  border-color: transparent transparent transparent #FFF;
}

.cta-tips .speech-bubble::after {
  content: "";
  position: absolute;
  right: -33px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 20px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

/* 文字 */
.cta-tips .cta-tips-title {
  font-size: 32px;
  margin: 0 auto 20px;
  line-height: 1.4;
  font-family: "kozuka-gothic-pro", "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #3F5F3F;
  width: fit-content;
  border-bottom: 3px solid #3F5F3F;
  padding-bottom: 8px;
}

.cta-tips .cta-tips-subtext {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

/* リンク */
.cta-link{
  display:flex;
  flex-direction:row-reverse;
  align-items:flex-end;
  justify-content:center;
  gap:12px;

  text-decoration:none;
  color:inherit;
}

.cta-link,
.cta-link:hover,
.cta-link:visited,
.cta-link:active {
  text-decoration: none;
}

.cta-logo {
  display: block;
  margin: 0 auto 6px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .cta-tips .cta-bubble-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }


.cta-tips .speech-bubble::after {
    display:none;
}

.cta-tips .speech-bubble::before{
    left: 50%;
    right: auto;
    top: auto;
    bottom: -30px;

    transform: translateX(-50%);

    border-width: 20px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
  }

  .cta-tips .character {
    width: 90px;
  }

  .cta-link{
    display:flex;
    flex-direction:column-reverse;
    align-items:center;
    text-align:center;
    gap:16px;
  }

/* 文字 */
.cta-tips .cta-tips-title {
  font-size: 24px;
}

}

/* =========================
  おそうじ豆知識 下層ページ
========================= */

/* =========================
   H1（ページタイトル）
========================= */
.tips-h1 {
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  margin: 40px auto;

  color: #3F5F3F;
  width: fit-content;
  border-bottom: 3px solid #3F5F3F;
}

/* =========================
   H2（下層：左寄せ・線なし）
========================= */


.is-hidden {
  display: none;
}

/* =========================
   カードブロック
========================= */
.tips-block {
  margin-bottom: 50px;
}

/* =========================
   カード見出し（H3相当）
========================= */

.tips-label {
  background: #f9fcf9;
  padding: 16px 16px 16px 90px;

  font-size: 20px;
  font-weight: 600;

  position: relative;
} 

.tips-label::before {
  content: "POINT";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);

  background: #A8D080;
  color: #fff;

  font-size: 12px;
  font-weight: bold;

  padding: 6px 10px;
  border-radius: 6px;
}

/* ◎バージョン */
.tips-label-ok {
  background: #f9fcf9;
  padding: 16px 16px 16px 90px;

  font-size: 20px;
  font-weight: 600;

  position: relative;
} 

.tips-label-ok::before {
  content: "◎";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 36px;
  font-weight: bold;

  color: #0099FF;
}

/* ×バージョン */
.tips-label-ng {
  background: #f9fcf9;
  padding: 16px 16px 16px 90px;

  font-size: 20px;
  font-weight: 600;

  position: relative;
} 

.tips-label-ng::before {
  content: "✕";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 36px;
  font-weight: bold;

  color: #e74c3c;
}

/* =========================
お掃除箇所のh3、p
========================= */
.tips-label-title{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);

  background:#A8D080;
  color:#fff;

  font-size:16px;
  font-weight:700;
  line-height:1;

  padding:10px 18px;
  border-radius:8px;

  margin:0;
}

.tips-label-catch{
  background:#f9fcf9;
  padding:18px 18px 18px 130px;

  font-size:20px;
  font-weight:600;

  position:relative;
}

/* =========================
   本文
========================= */

.tips-text {
  padding: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.tips-text p {
  margin: 0 0 8px;
}

/* =========================
  スクロールアニメ（左→右）
========================= */

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s ease;
}

.fade-left.is-active {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   tipsセクション全体のスタイル
========================= */
.tips-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.tips-visual {
  text-align: center;
  margin-bottom: 10px;
}

.tips-visual img {
  width: 100px;
  height: auto;
  opacity: 0.5;
}


/* 見出し＋アイコン横並び */
.tips-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* アイコン */
.tips-icon {
  width: 70px;
  height: auto;
  opacity: 0.5;
}

/* H2見出し */
.tips-h2 {
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  text-align: left;
  font-family: "kozuka-gothic-pro", "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .tips-h2 {
    font-size: 24px;
  }
}

/* カード */
.tips-item {
  background: #fff;
  border: 1px solid #cbddce;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  padding: 20px;
  margin-bottom: 15px;
  transition: 0.3s;
}

.tips-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* =========================
   レシピ（作り方）
========================= */
/* 作り方紹介 */
.tips-recipe {
  margin: 12px 0;
  padding: 20px;
  background: #faf8f3;
  border-radius: 10px;

}

.tips-recipe h4 {
  font-size: 16px;
  margin: 6px 0;
  font-weight: bold;
  color: #3F5F3F;
  }
    

  .tips-text p {
    margin: 0 10px 0 30px;
  }

  /* 作り方のアイコン余白 */
.fa-flask {
  margin-right: 8px;
}

  /* 作り方のアイコン余白 */
.fa-square-check {
  margin-right: 8px;
}

  /* 作り方説明インデント */

.tips-mini {
  margin-left: 30px;
  padding-left: 10px;
}

.tips-mini p {
  margin: 4px 0;
}

/* =========================
   tipslinks（下層の関連リンク）
========================= */

.tips-related{
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.tips-related .card-container{
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.tips-related .card{
  padding: 8px;
  min-height: 130px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-decoration: none;
}

.tips-related .card:hover{
  text-decoration: none;
}

.tips-related .card_img{
  width: 60px;
  height: 60px;
  margin: 0 auto 2px;
}

.tips-related .card h3{
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  margin: 0;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 1;
}

/* スマホ */
@media screen and (max-width: 768px){

.tips-related{
  margin-top: 40px;
}

  .tips-related .card-container{
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

}


/* =========================
  フッターリンク（豆知識ナビゲーション）
========================= */
.tips-nav{
  margin: 10px auto;
  padding: 2px 0;

  text-align: center;
  line-height: 2;
  font-size: 14px;
}

.tips-nav a{
  color: #555;
  text-decoration: none;
  margin: 0 4px;
}

.tips-nav a:hover{
  text-decoration: none;
  color: #3F5F3F;
}

.tips-nav span{
  color: #bbb;
  margin: 0 8px;
}