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


.post-101 .date-tags {
display: none;
}

H2>span,H3>span,H4>span {
	padding-top: 60px;
	margin-top: -60px;
}

/************************************
** claude
************************************/

/* ==============================================
   車買取記事専用CSS（Cocoon子テーマ用）
   完全スマホ対応版
   ============================================== */

/* ハイライトボックス（青系） */
.car-highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #2563eb;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Q&Aボックス（黄色系） */
.car-qa-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 免責事項ボックス */
.car-disclaimer {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    font-size: 0.9em;
    color: #6b7280;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* データ出典エリア */
.car-data-sources {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin: 30px 0 10px 0;
    border-radius: 4px;
    font-size: 0.9em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.car-data-sources h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.car-data-sources ul {
    margin: 0;
    padding-left: 20px;
}

.car-data-sources li {
    margin: 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* CTAボタン */
.car-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.car-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
    color: white;
    text-decoration: none;
}

/* CTAボタン中央配置 */
.car-cta-center {
    text-align: center;
    margin: 30px 0;
}

/* CTA説明文 */
.car-cta-description {
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 10px;
    text-align: center;
}

/* 価格アップ強調 */
.car-price-up {
    color: #dc2626;
    font-size: 1.2em;
    font-weight: bold;
}

/* 表のラッパー（横スクロール対応） */
.car-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 25px 0;
    width: 100%;
}

/* 比較表 */
.car-comparison-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    background: white;
}

.car-comparison-table th {
    background: #f3f4f6;
    color: #000;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.95em;
    white-space: nowrap;
}

.car-comparison-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9em;
    word-wrap: break-word;
}

.car-comparison-table tr:hover {
    background: #f9fafb;
}

/* 表内の小さいテキスト */
.small-text {
    font-size: 0.85em;
    display: block;
    margin-top: 2px;
}

/* グラフコンテナ（PC） */
.car-chart-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    min-height: 300px;
}

.car-chart-container canvas {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* ボックス系の調整 */
    .car-highlight-box,
    .car-qa-box,
    .car-disclaimer,
    .car-data-sources {
        padding: 15px;
        margin: 20px 0;
    }
    
    /* CTAボタンの調整 */
    .car-cta-button {
        padding: 14px 20px;
        font-size: 0.9em;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* グラフコンテナの調整 */
    /* グラフコンテナの調整（改善版） */
    .car-chart-container {
        padding: 15px 10px;
        margin: 20px 0;
        height: auto;  /* ← 重要：自動調整 */
        min-height: auto;  /* ← 重要：最小高さ削除 */
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .car-chart-container canvas {
        display: block !important;
        margin: 0 auto !important;
        /* height指定は削除（JavaScriptで制御） */
    }
    
    /* 表の調整 */
    .car-table-wrapper {
        margin: 20px 0;
        padding: 0;
        width: 100%;
        overflow-x: auto;
    }
    
    .car-comparison-table {
        font-size: 0.8em;
        min-width: 480px;
    }
    
    .car-comparison-table th,
    .car-comparison-table td {
        padding: 10px 6px;
        font-size: 0.85em;
    }
    
    .small-text {
        font-size: 0.75em;
    }
}

/* 超小型画面対応 */
@media (max-width: 480px) {
    .car-highlight-box,
    .car-qa-box,
    .car-disclaimer,
    .car-data-sources {
        padding: 12px;
        font-size: 0.9em;
    }
    
    .car-cta-button {
        padding: 12px 16px;
        font-size: 0.85em;
    }
    
    .car-comparison-table {
        font-size: 0.75em;
        min-width: 450px;
    }
    
    .car-comparison-table th,
    .car-comparison-table td {
        padding: 8px 4px;
    }
    
    /* グラフコンテナの追加最適化 */
    .car-chart-container {
        padding: 10px 5px;
        height: auto;
        min-height: auto;
        border-radius: 4px;
    }
    
    .car-chart-container canvas {
        min-height: 350px !important;  /* ← 280pxから350pxに変更 */
        max-height: 380px !important;  /* ← 新規追加 */
    }
}

/* 通常のスマホ（480px以下） */
@media (max-width: 480px) {
    .cta-lead-text {
        font-size: 0.75em !important;  /* 赤字テキストを縮小 */
    }
    .car-cta-button {
        font-size: 0.85em !important;  /* ボタンテキストを縮小 */
    }
}

/* 小さいスマホ（380px以下） */
@media (max-width: 380px) {
    .cta-lead-text {
        font-size: 0.65em !important;  /* さらに縮小 */
    }
    .car-cta-button {
        font-size: 0.75em !important;  /* さらに縮小 */
    }
}


/* CTAボタン */
.car-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

/* アニメーション効果付きCTAボタン */
.car-cta-button.animated-button {
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite, orange-flash 1.5s infinite;
    border: 3px solid transparent;
}

/* パルスアニメーション */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.6);
    }
    100% {
        box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
    }
}

/* オレンジ色の点滅枠（新規追加） */
@keyframes orange-flash {
    0%, 100% {
        border-color: transparent;
        box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
    }
    25%, 75% {
        border-color: #ff6b35;
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
    }
    50% {
        border-color: #ff8c57;
        box-shadow: 0 0 25px rgba(255, 140, 87, 0.8);
    }
}

/* 光るエフェクト */
.car-cta-button.animated-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.car-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
    color: white;
    text-decoration: none;
    animation-play-state: paused;
}

/* CTA上の赤字テキスト（SP対応強化） */
.cta-lead-text {
    text-align: center;
    margin: 0 0 5px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* CTA赤字テキストのSP最適化 */
    .cta-lead-text {
        font-size: 1.6em !important;
    }
    
    /* アニメーション効果付きボタンのSP調整 */
    .car-cta-button.animated-button {
        font-size: 1.1em !important;
        padding: 16px 24px;
    }
}

/* 超小型画面対応 */
@media (max-width: 480px) {
    /* CTA赤字テキストの超小型画面用 */
    .cta-lead-text {
        font-size: 1.5em !important;
    }
    
    /* アニメーション効果付きボタンの超小型画面調整 */
    .car-cta-button.animated-button {
        font-size: 1em !important;
        padding: 14px 20px;
    }
}

@keyframes orange-flash {
    0%, 100% { border-color: transparent; }
    25%, 75% { border-color: #ff6b35; }
    50% { border-color: #ff8c57; }
}

/* キラーコンテンツ1 */
/* スマホ用改行表示 */
.sp-only { display: none; }
@media screen and (max-width: 768px) {
  .sp-only { display: block; }
}

.car-hidden-value-box-refined {
    border-radius: 4px;
    padding: 25px 15px; /* 左右のパディングを調整 */
    margin: 15px 0 30px 0; /* 上マージンをh2との間隔用に調整 */
    background-color: #f8f9fa; /* 薄いグレー背景 */
}

.car-hidden-value-box-refined .section-lead,
.car-hidden-value-box-refined .section-conclusion {
    color: #4a5568;
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 25px;
}
.car-hidden-value-box-refined .section-conclusion {
    margin-top: 25px;
    margin-bottom: 0;
    font-size: 0.95em;
}

/* Card Style for each point */
.car-value-point-card {
    background-color: #ffffff; /* White background for card */
    border-radius: 6px;
    padding: 20px 25px; /* Card padding */
    margin-bottom: 15px; /* Space between cards */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}
.car-value-point-card:last-of-type {
    margin-bottom: 0;
}

/* Heading Style */
.car-value-point-card h3 {
    font-size: 1.2em;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 12px; /* 段落とのスペース */
    font-weight: 600;
    display: flex; /* アイコンとテキストを横並び */
    align-items: center; /* 縦方向中央揃え */
    padding-bottom: 5px; /* 下線の位置調整 */
    border-bottom: 2px solid #34aedb; /* 指定された青色 (#34aedb) の下線 */
}

/* Icon Style */
.car-value-point-card .value-icon {
    color: #e53e3e; /* Icon color (赤色のまま) */
    margin-right: 10px; /* アイコンとテキストの間隔 */
    font-size: 1.2em; /* アイコンサイズを見出しテキストに合わせる */
    width: auto; /* 幅自動 */
    flex-shrink: 0;
}

.car-value-point-card p {
    color: #4a5568; /* Point text color */
    font-size: 0.95em;
    line-height: 1.7;
    margin-left: 0;
    margin-bottom: 0;
    text-align: left;
}
.car-value-point-card strong {
     color: #c53030; /* Strong text color (赤系のまま) */
     font-weight: 600;
}


/* キラーコンテンツ */
.car-point-box {
    background-color: #f9fafb; /* 背景色 */
    border: 1px solid #e5e7eb; /* 境界線 */
    border-radius: 8px; /* 角丸 */
    padding: 20px; /* 内側余白 */
    margin-bottom: 20px; /* 下マージン */
}
.car-point-box h3 {
    font-size: 1.2em; /* 見出しサイズ */
    color: #1f2937; /* 見出し色 */
    margin-top: 0;
    margin-bottom: 15px; /* 見出し下マージン */
    padding-bottom: 5px; /* 見出し下線用 */
    border-bottom: 2px solid #34aedb; /* 見出し下線 */
}
.car-point-box ul {
    list-style-type: disc; /* リストマーカー */
    padding-left: 20px; /* リスト左インデント */
    margin-bottom: 10px; /* リスト下マージン */
}
.car-point-box ul:last-child {
    margin-bottom: 0; /* 最後のリストの下マージンなし */
}
.car-point-box ul li {
    margin-bottom: 8px; /* リスト項目間マージン */
    color: #4b5563; /* テキスト色 */
}
.car-point-box p {
    color: #4b5563; /* テキスト色 */
    margin-bottom: 10px; /* 段落下マージン */
    line-height: 1.6; /* 行間 */
}
.car-point-box strong {
     color: #dc2626; /* 強調テキスト色 */
     font-weight: bold;
}
