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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ========================================
   バスボム記事用スタイル (.bathbomb-article)
   ======================================== */
.bathbomb-article {
  --cream: #fdf8f3;
  --blush: #f5e6dc;
  --rose: #e8c4b0;
  --terracotta: #c8856a;
  --deep: #7a4a38;
  --text: #3d2b22;
  --text-light: #8a6a5e;
  --white: #ffffff;
  --shadow: rgba(120, 70, 50, 0.12);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
}

.bathbomb-article .hero {
  background: linear-gradient(135deg, #f9ede4 0%, #fce8d8 40%, #f0d8c8 100%);
  text-align: center;
  padding: 60px 20px 50px;
  position: relative;
  overflow: hidden;
  margin: -20px -20px 0;
}

.bathbomb-article .hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,196,176,0.4) 0%, transparent 70%);
}

.bathbomb-article .hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,133,106,0.2) 0%, transparent 70%);
}

.bathbomb-article .hero-category {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  text-transform: uppercase;
  border: 1px solid var(--terracotta);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.bathbomb-article .hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 700;
  color: var(--deep);
  line-height: 1.5;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.bathbomb-article .hero-desc {
  font-size: 14px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.8;
}

.bathbomb-article .hero-date {
  font-size: 12px;
  color: var(--text-light);
}

.bathbomb-article .toc {
  background: var(--white);
  border: 1px solid var(--rose);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 40px 0;
  box-shadow: 0 4px 20px var(--shadow);
}

.bathbomb-article .toc-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bathbomb-article .toc-title::before {
  content: '\2726';
  color: var(--terracotta);
  font-size: 12px;
}

.bathbomb-article .toc ol {
  padding-left: 20px;
}

.bathbomb-article .toc li {
  margin-bottom: 8px;
  font-size: 13px;
}

.bathbomb-article .toc a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s;
}

.bathbomb-article .toc a:hover {
  color: var(--deep);
  text-decoration: underline;
}

.bathbomb-article section {
  margin: 50px 0;
}

.bathbomb-article .section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rose);
  line-height: 1.5;
}

.bathbomb-article .section-title span {
  color: var(--terracotta);
}

.bathbomb-article p {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 16px;
}

.bathbomb-article .product-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 6px 30px var(--shadow);
  border: 1px solid rgba(232,196,176,0.5);
  transition: transform 0.2s;
}

.bathbomb-article .product-card:hover {
  transform: translateY(-3px);
}

.bathbomb-article .product-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--terracotta);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
  font-family: 'Noto Serif JP', serif;
}

.bathbomb-article .product-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 14px;
  line-height: 1.6;
}

.bathbomb-article .product-tag {
  display: inline-block;
  background: var(--blush);
  color: var(--terracotta);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  margin: 0 4px 8px 0;
}

.bathbomb-article .product-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin: 14px 0;
}

.bathbomb-article .product-point {
  background: var(--blush);
  border-left: 3px solid var(--terracotta);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  margin: 14px 0;
  color: var(--deep);
}

.bathbomb-article .product-point strong {
  color: var(--terracotta);
}

.bathbomb-article .affiliate-wrap {
  margin: 20px 0 8px;
  display: flex;
  justify-content: center;
}

.bathbomb-article .price-note {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 6px;
}

.bathbomb-article .compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 20px 0;
}

.bathbomb-article .compare-table th {
  background: var(--deep);
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
}

.bathbomb-article .compare-table th:first-child {
  border-radius: 10px 0 0 0;
}

.bathbomb-article .compare-table th:last-child {
  border-radius: 0 10px 0 0;
}

.bathbomb-article .compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rose);
  vertical-align: top;
}

.bathbomb-article .compare-table tr:nth-child(even) td {
  background: var(--blush);
}

.bathbomb-article .compare-table tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}

.bathbomb-article .compare-table tr:last-child td:last-child {
  border-radius: 0 0 10px 0;
}

.bathbomb-article .point-box {
  background: linear-gradient(135deg, #fef5f0, #fce8dc);
  border: 1px solid var(--rose);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 30px 0;
}

.bathbomb-article .point-box-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 14px;
}

.bathbomb-article .point-list {
  list-style: none;
  padding: 0;
}

.bathbomb-article .point-list li {
  font-size: 14px;
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  color: var(--text);
}

.bathbomb-article .point-list li::before {
  content: '\273F';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 12px;
  top: 8px;
}

.bathbomb-article .rank-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e8a87c, #c8856a);
  color: white;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: 500;
  vertical-align: middle;
}

.bathbomb-article .summary-box {
  background: var(--deep);
  color: white;
  border-radius: 20px;
  padding: 32px;
  margin: 40px 0;
}

.bathbomb-article .summary-box h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: var(--rose);
  margin-bottom: 16px;
  border-bottom: none;
  padding-bottom: 0;
}

.bathbomb-article .summary-box p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

.bathbomb-article .disclaimer {
  font-size: 11px;
  color: var(--text-light);
  border-top: 1px solid var(--rose);
  padding-top: 20px;
  margin-top: 40px;
  line-height: 1.8;
}

.bathbomb-article .bb-footer {
  text-align: center;
  padding: 40px 20px;
  background: var(--blush);
  margin-top: 60px;
  font-size: 12px;
  color: var(--text-light);
}

.bathbomb-article .affiliate-wrap > td > div {
  max-width: 100% !important;
  width: 100% !important;
}

/* バスボム記事 レスポンシブ */
@media screen and (max-width: 480px) {
  .bathbomb-article .product-card {
    padding: 20px 16px;
  }

  .bathbomb-article .toc {
    padding: 20px 18px;
  }

  .bathbomb-article .compare-table {
    font-size: 11px;
  }

  .bathbomb-article .compare-table th,
  .bathbomb-article .compare-table td {
    padding: 8px;
  }

  .bathbomb-article .summary-box {
    padding: 24px 20px;
  }

  .bathbomb-article .hero {
    padding: 40px 12px 30px;
  }
}

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

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

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

/* ========================================
   楽天アフィリエイトリンク レスポンシブ対応
   ======================================== */
.bathbomb-article .affiliate-wrap {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bathbomb-article .affiliate-wrap table,
.bathbomb-article .affiliate-wrap table table {
  max-width: 100%;
}

.bathbomb-article .affiliate-wrap > table > tbody > tr > td > div,
.bathbomb-article .affiliate-wrap > table > tr > td > div {
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.bathbomb-article .affiliate-wrap img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 540px) {
  .bathbomb-article .affiliate-wrap table table td {
    display: block !important;
    width: 100% !important;
    text-align: center;
  }

  .bathbomb-article .affiliate-wrap table table td img {
    display: inline-block;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
  }

  .bathbomb-article .affiliate-wrap table table td p {
    text-align: center !important;
    padding: 8px 6px !important;
  }

  .bathbomb-article .affiliate-wrap table table td div[style*="margin"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 8px;
    float: none !important;
  }

  .bathbomb-article .affiliate-wrap table table td div[style*="float"] {
    float: none !important;
    width: auto !important;
    margin: 0 auto;
  }
}
