/**
 * Single Purchase Styles V2
 * 買取実績シングルページ専用CSS
 * Design: New Site V2準拠（モノクロベース + ベージュ差し色 + グリーンアクセント）
 * V2: purchase-text-free（リッチエディター）のHTML表示を最適化
 */

/* ========================================
   基本設定
======================================== */
.sp-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 120px;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2c2c2c;
    font-weight: 400;
}

/* ========================================
   パンくずリスト
======================================== */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sp-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sp-breadcrumb a:hover {
    color: #2d5016;
}

.sp-breadcrumb-separator {
    color: #ccc;
}

.sp-breadcrumb-current {
    color: #2c2c2c;
    font-weight: 500;
}

/* ========================================
   メインコンテンツ（2カラムレイアウト）
======================================== */
.sp-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* 左カラム: 画像 */
.sp-image-column {
    position: relative;
}

.sp-main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
    color: #ccc;
    gap: 12px;
}

.sp-image-placeholder p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* 右カラム: 製品情報 */
.sp-info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* タグ */
.sp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 400;
}

.sp-tag-category {
    background: #f8f5f0;
    color: #2c2c2c;
    border: 1px solid #d0d0d0;
}

.sp-tag-category:hover {
    background: #ede9e3;
    border-color: #2d5016;
    color: #2d5016;
}

.sp-tag-brand {
    background: #2c2c2c;
    color: white;
    border: 1px solid #2c2c2c;
}

.sp-tag-brand:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* 製品名 */
.sp-product-title {
    font-size: 28px;
    font-weight: 500;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* 基本情報テーブル */
.sp-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f5f0;
    border-radius: 8px;
    overflow: hidden;
}

.sp-info-table tr {
    border-bottom: 1px solid #e8e3d8;
}

.sp-info-table tr:last-child {
    border-bottom: none;
}

.sp-info-table th {
    text-align: left;
    padding: 16px 20px;
    font-weight: 500;
    color: #666;
    font-size: 14px;
    width: 120px;
    background: #ede9e3;
}

.sp-info-table td {
    padding: 16px 20px;
    color: #2c2c2c;
    font-size: 15px;
    font-weight: 400;
}

/* CTAボタン */
.sp-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.sp-btn-line {
    background: #06C755;
    color: white;
    border: 2px solid #06C755;
}

.sp-btn-line:hover {
    background: #05b04c;
    border-color: #05b04c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
}

.sp-btn-secondary {
    background: transparent;
    color: #2d5016;
    border: 2px solid #2d5016;
}

.sp-btn-secondary:hover {
    background: #2d5016;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   説明文セクション（リッチエディター対応）
======================================== */
.sp-description-section {
    margin-bottom: 80px;
    padding: 60px;
    background: #f8f5f0;
    border-radius: 12px;
}

.sp-description-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

/* 見出しスタイル */
.sp-description-content h2,
.sp-description-content h3,
.sp-description-content h4 {
    font-weight: 500;
    color: #2c2c2c;
    margin: 40px 0 20px 0;
    line-height: 1.5;
}

.sp-description-content h2 {
    font-size: 22px;
}

.sp-description-content h3 {
    font-size: 20px;
}

.sp-description-content h4 {
    font-size: 18px;
}

/* 段落 */
.sp-description-content p {
    margin: 0 0 24px 0;
}

/* リスト */
.sp-description-content ul,
.sp-description-content ol {
    margin: 0 0 24px 24px;
    padding: 0;
}

.sp-description-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* 強調 */
.sp-description-content strong {
    font-weight: 600;
    color: #2d5016;
}

.sp-description-content b {
    font-weight: 600;
    color: #2c2c2c;
}

/* リンク */
.sp-description-content a {
    color: #2d5016;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.sp-description-content a:hover {
    opacity: 0.7;
}

/* 画像（リッチエディター内） */
.sp-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 水平線 */
.sp-description-content hr {
    border: none;
    border-top: 1px solid #d0d0d0;
    margin: 32px 0;
}

/* 引用 */
.sp-description-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: white;
    border-left: 4px solid #2d5016;
    border-radius: 4px;
    color: #555;
    font-style: italic;
}

/* コード */
.sp-description-content code {
    padding: 2px 6px;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

/* テーブル（リッチエディター内） */
.sp-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.sp-description-content table th,
.sp-description-content table td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.sp-description-content table th {
    background: #ede9e3;
    font-weight: 500;
}

/* ========================================
   関連製品セクション
======================================== */
.sp-related-section {
    margin-top: 80px;
}

.sp-section-title {
    font-size: 24px;
    font-weight: 500;
    color: #2c2c2c;
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: 0.05em;
}

.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 関連製品カード */
.sp-related-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.sp-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #2d5016;
}

.sp-related-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sp-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sp-related-card:hover .sp-related-image img {
    transform: scale(1.05);
}

.sp-related-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.sp-related-brand-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 11px;
    background: rgba(44, 44, 44, 0.9);
    color: white;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.sp-related-info {
    padding: 16px;
}

.sp-related-title {
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2c;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-related-spec {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* ========================================
   レスポンシブ対応
======================================== */

/* タブレット（768px〜1023px） */
@media (max-width: 1023px) {
    .sp-single-container {
        padding: 32px 20px 80px;
    }
    
    .sp-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sp-related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .sp-description-section {
        padding: 40px 32px;
    }
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
    .sp-single-container {
        padding: 24px 16px 60px;
    }
    
    .sp-breadcrumb {
        font-size: 12px;
        margin-bottom: 24px;
    }
    
    .sp-main-content {
        gap: 32px;
        margin-bottom: 60px;
    }
    
    .sp-product-title {
        font-size: 22px;
    }
    
    .sp-info-table th {
        width: 100px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .sp-info-table td {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .sp-cta-buttons {
        gap: 10px;
    }
    
    .sp-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .sp-description-section {
        padding: 32px 20px;
        margin-bottom: 60px;
    }
    
    .sp-description-content {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .sp-description-content h2 {
        font-size: 20px;
        margin: 32px 0 16px 0;
    }
    
    .sp-description-content h3 {
        font-size: 18px;
    }
    
    .sp-description-content h4 {
        font-size: 16px;
    }
    
    .sp-description-content ul,
    .sp-description-content ol {
        margin-left: 20px;
    }
    
    .sp-section-title {
        font-size: 20px;
        margin-bottom: 32px;
    }
    
    .sp-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sp-related-info {
        padding: 14px;
    }
    
    .sp-related-title {
        font-size: 13px;
    }
    
    .sp-related-spec {
        font-size: 11px;
    }
}

/* 小型スマートフォン（480px以下） */
@media (max-width: 480px) {
    .sp-product-title {
        font-size: 20px;
    }
    
    .sp-info-table th {
        width: 90px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .sp-info-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .sp-description-section {
        padding: 24px 16px;
    }
    
    .sp-description-content {
        font-size: 14px;
    }
    
    .sp-description-content h2 {
        font-size: 18px;
    }
    
    .sp-description-content h3 {
        font-size: 16px;
    }
}