/*
Theme Name: Cocoon Child - UV LAB
Theme URI: https://uvlab.jp
Description: UV LAB (uvlab.jp) 専用のCocoon子テーマ。TS Cloud風のクリーンで信頼感のあるテック・ガジェット系デザイン（高CVR・E-E-A-T重視）を適用します。
Author: UV LAB
Author URI: https://uvlab.jp
Template: cocoon-master
Version: 1.0.0
*/

/* ==========================================================================
   1. カラー変数定義 (UV LAB Brand Colors)
   ========================================================================== */
:root {
  --uv-navy: #1E589E;      /* ディープネイビー (信頼・権威性) */
  --uv-cyan: #0E7490;      /* ダークシアン (レンズ・科学) */
  --uv-sky: #26A6DE;       /* スカイブルー (透明感・親しみやすさ) */
  --uv-orange: #FB8500;    /* サンバーンオレンジ (アクセント・CTA) */
  --uv-yellow: #FFB703;    /* 太陽イエロー */
  --uv-text-main: #14325A; /* メインテキスト */
  --uv-text-light: #475569;/* サブテキスト */
  --uv-bg-gray: #F1F5F9;   /* 背景グレー (H2やボックス用) */
  --uv-bg-blue: #F0F7FF;   /* 背景ライトブルー (目次用) */
  --uv-border: #E2E8F0;    /* 汎用ボーダー */
}

/* ==========================================================================
   2. ベーススタイル & タイポグラフィ
   ========================================================================== */
body {
  color: var(--uv-text-main);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

a {
  color: var(--uv-sky);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--uv-navy);
  text-decoration: underline;
}

/* ==========================================================================
   3. 見出しデザイン (TS Cloud風 クリーン＆テック)
   ========================================================================== */
/* H2見出し */
.article h2 {
  background-color: var(--uv-bg-gray);
  color: var(--uv-text-main);
  padding: 1.2em 1em 1.2em 1.5em;
  border-radius: 4px;
  border-left: 8px solid var(--uv-navy);
  border-bottom: none;
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* H3見出し */
.article h3 {
  color: var(--uv-text-main);
  padding: 0.5em 0 0.5em 0.8em;
  border-bottom: 2px solid var(--uv-border);
  border-left: 5px solid var(--uv-sky);
  font-weight: 700;
  font-size: 1.3em;
  margin-top: 2em;
  margin-bottom: 1.2em;
}

/* H4見出し */
.article h4 {
  color: var(--uv-text-main);
  padding-bottom: 0.3em;
  border-bottom: 1px dashed var(--uv-sky);
  font-size: 1.1em;
}

/* ==========================================================================
   4. 目次 (TOC) カスタマイズ
   ========================================================================== */
.toc {
  background-color: var(--uv-bg-blue);
  border: 1px solid #D6E4F0;
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 2.5em;
}

.toc-title {
  text-align: center;
  color: var(--uv-navy);
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 1em;
}

.toc-title::before {
  content: "■";
  color: var(--uv-orange);
  margin-right: 8px;
}

.toc-content ul li a {
  color: var(--uv-text-main);
  text-decoration: none;
}

.toc-content ul li a:hover {
  color: var(--uv-sky);
  text-decoration: underline;
}

/* ==========================================================================
   5. 執筆・監修者ボックス (E-E-A-T対策)
   ========================================================================== */
.author-box {
  background: #fff;
  border: 2px solid var(--uv-border);
  border-top: 4px solid var(--uv-navy);
  border-radius: 8px;
  padding: 1.5em;
  margin: 2em 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.author-box .author-name {
  color: var(--uv-navy);
  font-weight: bold;
  font-size: 1.2em;
}

/* ==========================================================================
   6. CTA・ボタンデザイン (高CVR用)
   ========================================================================== */
.uv-cta-box {
  background: linear-gradient(135deg, var(--uv-bg-gray) 0%, #ffffff 100%);
  border: 1px solid var(--uv-border);
  border-radius: 12px;
  padding: 2em;
  text-align: center;
  margin: 2.5em 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}

.uv-btn {
  display: inline-block;
  background-color: var(--uv-orange);
  color: #fff !important;
  font-weight: bold;
  font-size: 1.1em;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(251, 133, 0, 0.3);
  transition: all 0.3s;
}

.uv-btn:hover {
  background-color: #E07600;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(251, 133, 0, 0.4);
}

/* ==========================================================================
   7. 比較テーブル (透明性・データ提示用)
   ========================================================================== */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95em;
}

.article table th {
  background-color: var(--uv-navy);
  color: #fff;
  font-weight: bold;
  padding: 12px;
  border: 1px solid var(--uv-navy);
  text-align: center;
}

.article table td {
  padding: 12px;
  border: 1px solid var(--uv-border);
  vertical-align: middle;
}

.article table tr:nth-child(even) td {
  background-color: var(--uv-bg-gray);
}
