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

/************************************
** 子テーマ用のスタイルを書く（TREND CORE 全体デザイン＆UI最適化）
************************************/

/* 1. トップページ・一覧カードの閲覧数（PVバッジ）と日付の整列 */
.entry-card-meta,
.entry-card-info,
.related-entry-card-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.entry-card-pv,
.widget-entry-card-pv,
.post-views,
.pv-count {
  display: inline-flex !important;
  align-items: center !important;
  background-color: #f1f5f9 !important;
  color: #0284c7 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  border-left: 3px solid #0284c7 !important;
  line-height: 1.4 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 2. 記事本文のタイポグラフィ・見出しデザイン */
.tc-article-wrap {
  line-height: 1.9;
  color: #1e293b;
  font-size: 16px !important;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.tc-article-wrap p,
.tc-article-wrap li {
  font-size: 16px !important;
  line-height: 1.9 !important;
  margin-bottom: 1.4em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tc-article-wrap li {
  margin-bottom: 0.5em;
}

.tc-article-wrap a.tc-inline-link {
  color: #0284c7;
  font-weight: bold;
  text-decoration: underline;
  word-break: break-word;
}

.tc-article-wrap h2 {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff !important;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  border-left: 6px solid #38bdf8;
  margin-top: 44px;
  margin-bottom: 18px;
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1.4 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.tc-article-wrap h3 {
  border-bottom: 2px solid #0284c7;
  padding-bottom: 8px;
  margin-top: 32px;
  margin-bottom: 14px;
  color: #0f172a;
  font-size: 18px !important;
  font-weight: 800;
  line-height: 1.45 !important;
}

.tc-marker {
  background: linear-gradient(transparent 62%, #fef08a 62%);
  font-weight: 800;
  padding: 0 2px;
}

/* 3. 絵文字代替のプロフェッショナルCSSステータスバッジ */
.tc-label-badge {
  display: inline-block;
  background: #0284c7;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-right: 8px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.tc-badge-merit {
  display: inline-block;
  background: #16a34a;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-right: 8px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.tc-badge-demerit {
  display: inline-block;
  background: #dc2626;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-right: 8px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.tc-badge-memo {
  display: inline-block;
  background: #0f172a;
  color: #38bdf8 !important;
  font-size: 12px !important;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-right: 8px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.tc-badge-check {
  display: inline-block;
  background: #d97706;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-right: 8px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* 4. 要点ボックス・目次・メリットデメリット比較グリッド */
.tc-check-box,
.tc-toc {
  background: #f8fafc;
  border: none;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 22px 0;
  box-sizing: border-box;
}

.tc-check-title,
.tc-toc-title,
.tc-answer-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 18px !important;
  line-height: 1.45 !important;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.tc-answer-title {
  color: #0369a1;
  padding-bottom: 6px;
}

.tc-toc-title {
  padding-bottom: 6px;
}

.tc-toc ol {
  margin: 0;
  padding-left: 20px;
  color: #0284c7;
  font-weight: 700;
  font-size: 16px !important;
}

.tc-toc li {
  margin-bottom: 6px;
  font-size: 16px !important;
}

.tc-answer-box {
  background: #f0f9ff;
  border: none;
  border-left: 5px solid #0284c7;
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 22px 0;
  box-sizing: border-box;
}

.tc-point-box {
  background: #fffbeb;
  border: none;
  border-left: 5px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 22px 0;
  box-sizing: border-box;
  font-size: 16px !important;
}

.tc-caution-box {
  background: #fef2f2;
  border: none;
  border-left: 5px solid #ef4444;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 22px 0;
  box-sizing: border-box;
  font-size: 16px !important;
}

.tc-merit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.tc-merit-card {
  background: #f0fdf4;
  border: none;
  border-top: 4px solid #22c55e;
  border-radius: 12px;
  padding: 18px;
  box-sizing: border-box;
  font-size: 16px !important;
}

.tc-demerit-card {
  background: #fef2f2;
  border: none;
  border-top: 4px solid #ef4444;
  border-radius: 12px;
  padding: 18px;
  box-sizing: border-box;
  font-size: 16px !important;
}

.tc-speech {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0;
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 12px;
  border: none;
  border-left: 4px solid #0284c7;
  box-sizing: border-box;
}

.tc-speech-text {
  flex: 1;
  font-size: 16px !important;
  color: #334155;
}

/* 5. 横スクロール比較テーブル（左端の商品名列をSticky固定） */
.tc-table-hint {
  font-size: 13px !important;
  color: #0284c7;
  text-align: right;
  margin-bottom: 4px;
  font-weight: bold;
}

.tc-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 6px 0 28px 0;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.tc-table-scroll table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px !important;
}

.tc-table-scroll th {
  background-color: #0f172a;
  color: #ffffff;
  font-weight: bold;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid #334155;
  white-space: nowrap;
  font-size: 13px !important;
}

.tc-table-scroll td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  min-width: 110px;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.tc-table-scroll tr:nth-child(even) td {
  background-color: #f8fafc;
}

.tc-table-scroll th:first-child,
.tc-table-scroll td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  font-weight: 800;
  box-shadow: 2px 0 6px rgba(15, 23, 42, 0.08);
}

.tc-table-scroll td:first-child {
  background-color: #f0f9ff;
  color: #0f172a;
}

/* 6. 商品紹介カード・スペックバッジ・1行固定ボタン */
.tc-section-img {
  margin: 16px 0 26px 0;
  text-align: center;
}

.tc-section-img img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  display: block;
  margin: 0 auto;
}

.tc-prod-showcase {
  margin: 36px 0;
  padding: 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

.tc-prod-header {
  background: transparent;
  color: #0f172a;
  font-size: 18px !important;
  font-weight: 800;
  padding: 0 0 8px 0;
  border-bottom: 3px solid #0284c7;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.4 !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.tc-prod-card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  box-sizing: border-box;
}

.tc-prod-card:last-child {
  margin-bottom: 0;
}

.tc-prod-visual {
  margin: 0 0 16px 0;
  text-align: center;
}

.tc-prod-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  display: block;
  margin: 0 auto;
}

.tc-prod-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tc-prod-badge {
  display: inline-block;
  background: #0f172a;
  color: #facc15 !important;
  font-size: 12px !important;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  border: none;
  letter-spacing: 0.04em;
}

.tc-prod-price {
  font-size: 13px !important;
  font-weight: 800;
  color: #0369a1;
  background: #f0f9ff;
  padding: 4px 14px;
  border-radius: 999px;
  border: none;
}

.tc-prod-title {
  font-size: 18px !important;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.4 !important;
}

.tc-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tc-spec-pill {
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px !important;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  border-left: 3px solid #0284c7;
}

.tc-prod-desc {
  font-size: 16px !important;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.75 !important;
}

.tc-prod-target {
  background: #f0fdf4;
  color: #166534;
  font-size: 13px !important;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  line-height: 1.5 !important;
  border-left: 4px solid #16a34a;
}

.tc-prod-btns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tc-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tc-micro-copy {
  font-size: 13px !important;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 6px;
  text-align: center;
  white-space: nowrap !important;
}

.tc-btn-amz {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 14px 12px;
  background: linear-gradient(180deg, #ffad33, #ff9900);
  background-color: #ff9900;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 15px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
}

.tc-btn-rak {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 14px 12px;
  background: linear-gradient(180deg, #ef4444, #bf0000);
  background-color: #bf0000;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 15px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(191, 0, 0, 0.3);
}

/* 7. YouTube動画埋め込み枠のズレ完全防止 */
.tc-yt-section {
  margin: 32px 0 24px 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.tc-yt-header {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  padding: 0 0 8px 0 !important;
  border-bottom: 3px solid #0284c7 !important;
  margin-bottom: 16px !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.tc-article-wrap .video-container,
.entry-content .video-container,
.wp-block-embed__wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 24px 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #000000 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

.tc-article-wrap .video-container .video,
.entry-content .video-container .video {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 56.25% !important;
  margin: 0 !important;
  background: #000000 !important;
}

.tc-article-wrap .video-container iframe,
.entry-content .video-container iframe,
.wp-block-embed__wrapper iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: block !important;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .entry-card-meta,
  .entry-card-info,
  .entry-card-pv {
    display: inline-flex !important;
    visibility: visible !important;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .tc-prod-showcase {
    padding: 4px 0 !important;
    margin: 24px 0 !important;
  }
  .tc-prod-card {
    padding: 16px 14px !important;
    overflow: hidden !important;
  }
  .tc-prod-visual {
    width: calc(100% + 28px) !important;
    max-width: none !important;
    margin: -16px -14px 16px -14px !important;
    padding: 0 !important;
  }
  .tc-prod-visual img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 14px 14px 0 0 !important;
    border: none !important;
  }
  .tc-section-img {
    width: calc(100% + 12px) !important;
    max-width: none !important;
    margin: 16px -6px 24px -6px !important;
  }
  .tc-section-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .tc-btn-amz,
  .tc-btn-rak {
    font-size: 14px !important;
    padding: 14px 10px !important;
    white-space: nowrap !important;
  }
  .entry-card-meta,
  .entry-card-info {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    visibility: visible !important;
  }
  .entry-card-pv {
    display: inline-flex !important;
    visibility: visible !important;
    font-size: 11px !important;
  }
}