/*========================== 現代風トップページ CSS ==========================*/

/*=== 基本リセット ===*/
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
}

/*========================== ヘッダーバナー ==========================*/
#head-banner {
    margin: 0 0 15px;
    background:
    padding: 5px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
}

#head-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* スライダー用スタイル */
#head-banner .slider {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ヒーローコンテンツ */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-button.primary {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.cta-button.primary:hover {
    background: #ff5252;
}

/*========================== トップページカラム ==========================*/
#top-page-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 0 20px 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#column-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#column-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/*========================== セクション共通スタイル ==========================*/
.section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.section-title {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #e74c3c;
    border-radius: 2px;
}

.title-icon {
    font-size: 1.2rem;
}

/*========================== ニュースセクション ==========================*/
#news .box-news {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

#news .box-news::-webkit-scrollbar {
    width: 8px;
}

#news .box-news::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#news .box-news::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

#news .box-news::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* ニュースアイテムのスタイリング（動的コンテンツ用）
#news .box-news p {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

#news .box-news p:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

#news .box-news a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

#news .box-news a:hover {
    color: #3498db;
}

#news em, #news strong {
    color: #e74c3c;
    font-weight: bold;
}
*/

/*========================== 商品リスト共通 ==========================*/
.list-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.item-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.item-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.item-box:hover::before {
    left: 100%;
}

.item-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.link-image {
    display: block;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.item-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-box:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-box:hover .item-overlay {
    opacity: 1;
}

.view-detail {
    color: white;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.item-content {
    position: relative;
    z-index: 2;
}

.item-name {
    color: #2c3e50;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 2.8rem;
}

.item-name:hover {
    color: #3498db;
}

.item-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
}

.regular-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.9rem;
    margin-right: 8px;
}

.sale-price {
    color: #e74c3c;
}

/*========================== 新着商品セクション（修正版） ==========================*/
/*========================== カラーミーショップNEWアイコン精密修正 ==========================*/

/* 新着商品セクションを通常サイズに戻す */
#newitem {
    font-size: 16px !important;
}

/* カラーミーショップのNEWアイコンを正確なサイズに修正 */
#newitem img[src*="new"],
#newitem img[src*="NEW"],
#newitem img[alt*="new"],
#newitem img[alt*="NEW"] {
    width: 32px !important;
    height: 11px !important;  /* 32px → 11px に変更 */
    /* 以下略 */
}

/* 商品画像は通常サイズを維持 */
#newitem .link-image img {
    width: 100% !important;
    height: 150px !important;
    max-width: 100% !important;
    max-height: 150px !important;
    position: static !important;
    object-fit: cover !important;
}

#newitem .list-column {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* 新着商品のホバー問題修正 */
#newitem .item-box {
    transform: translateZ(0) !important; /* GPU加速で安定化 */
}

#newitem .item-box:hover {
    transform: translateY(-3px) translateZ(0) !important; /* 震えを防止 */
}

#newitem .item-box img {
    transform: translateZ(0) !important;
}

#newitem .item-box:hover img {
    transform: scale(1.03) translateZ(0) !important; /* 軽微なスケールに変更 */
}

/* 疑似要素の干渉防止 */
#newitem .item-box::before {
    pointer-events: none !important;
}

/* オーバーレイの干渉防止 */
#newitem .item-overlay {
    pointer-events: none !important;
}

/*========================== ランキングセクション ==========================*/
#toppage-ranking {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#toppage-ranking::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#toppage-ranking .section-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
}

#toppage-ranking .section-title::after {
    background: #ff6b6b;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

#toppage-ranking .item-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 15px;
}

#toppage-ranking .item-box::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.ranking-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ranking-1 .ranking-number { background: #f1c40f; }
.ranking-2 .ranking-number { background: #95a5a6; }
.ranking-3 .ranking-number { background: #cd7f32; }

#toppage-ranking .link-image {
    flex-shrink: 0;
    width: 160px;
    height: 150px;
    margin-right: 15px;
    margin-bottom: 0;
}

#toppage-ranking .item-content {
    flex: 1;
}

#toppage-ranking .item-name {
    color: white;
    font-size: 0.85rem;
    min-height: auto;
    margin-bottom: 5px;
}

#toppage-ranking .item-name:hover {
    color: #ff6b6b;
}

#toppage-ranking .item-price {
    color: #ff6b6b;
    font-size: 1rem;
}

/*========================== 特別お知らせエリア ==========================*/
#special-notice .notice-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-item {
    padding: 20px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notice-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.notice-item:hover::before {
    left: 100%;
}

.notice-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.notice-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.notice-button {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.notice-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/*========================== レスポンシブ対応 ==========================*/
@media (max-width: 768px) {
    #top-page-column {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 0 15px 40px;
    }

    #head-banner {
        padding: 40px 15px;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .list-column {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    #toppage-ranking .item-box {
        flex-direction: column;
        text-align: center;
    }

    #toppage-ranking .link-image {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100px;
        height: 75px;
    }

    #news .box-news {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .list-column {
        grid-template-columns: 1fr 1fr;
    }

    .item-box {
        padding: 15px;
    }

    .item-box img {
        height: 120px;
    }

    .section {
        padding: 15px;
    }

    #head-banner {
        padding: 30px 10px;
    }
}

/*========================== clearfix（IE対応） ==========================*/
#top-page-column:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

#top-page-column {
    display: block;
}

/*========================== アニメーション ==========================*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }

/* ニュースセクションのみのリデザイン - 既存レイアウトを一切変更しない */
/*========================== ニュースセクション専用リデザイン ==========================*/
#news .box-news {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

#news .box-news::-webkit-scrollbar {
    width: 8px;
}

#news .box-news::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#news .box-news::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

#news .box-news::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* ニュースアイテムのデザイン改善 */
#news .box-news p {
    margin: 0 0 12px 0;
    padding: 18px 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    margin-left: 15px;
    margin-right: 15px;
}

#news .box-news p:first-child {
    margin-top: 15px;
}

#news .box-news p:last-child {
    margin-bottom: 15px;
}

#news .box-news p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.05), transparent);
    transition: left 0.5s ease;
}

#news .box-news p:hover::before {
    left: 100%;
}

#news .box-news p:hover {
    background: #f8f9fa;
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    border-left-color: #e74c3c;
}

/* 日付の自動スタイリング */
#news .box-news p {
    position: relative;
}

/* 日付パターンを検出してスタイル適用 */
#news .box-news p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

/* 日付スタイル（既存のem要素） */
#news .box-news p em {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 12px;
    font-style: normal;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
    position: relative;
    z-index: 2;
}

/* ニュースタイトル */
#news .box-news p strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: inline-block;
    margin-top: 2px;
}

/* リンクスタイル */
#news .box-news a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#news .box-news a:hover {
    color: #3498db;
}

/* 特別なニュースアイテム（重要なお知らせ用） */
#news .box-news p.important {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #fff9e6, #fef5e7);
}

#news .box-news p.important em {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

#news .box-news p.emergency {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fdf2f2, #fef5f5);
    animation: pulse 2s infinite;
}

#news .box-news p.emergency em {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    50% { box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2); }
}

/* アイコン追加（オプション） */
#news .box-news p[data-type="repair"]::after {
    content: "&#128295;";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
}

#news .box-news p[data-type="update"]::after {
    content: "&#127381;";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
}

#news .box-news p[data-type="notice"]::after {
    content: "&#128226;";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
}

/* 空のニュース欄対策 */
#news .box-news:empty::before {
    content: "最新のニュースを準備中です...";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

/* ニュースが少ない場合のパディング調整 */
#news .box-news {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* レスポンシブ対応（ニュース欄のみ） */
@media (max-width: 768px) {
    #news .box-news {
        max-height: 300px;
        padding: 0;
    }
    
    #news .box-news p {
        margin-left: 10px;
        margin-right: 10px;
        padding: 15px;
    }
    
    #news .box-news p em {
        font-size: 0.75rem;
        padding: 3px 8px;
        margin-right: 8px;
        display: block;
        margin-bottom: 5px;
        width: fit-content;
    }
    
    #news .box-news p strong {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #news .box-news p {
        padding: 12px;
        margin-left: 8px;
        margin-right: 8px;
    }
    
    #news .box-news p em {
        font-size: 0.7rem;
    }
    
    #news .box-news p strong {
        font-size: 0.85rem;
    }
}

/* === Repair First Redesign TEST 2026-06-22 === */
#head-banner {
  background: #f7fbff;
  border-bottom: 1px solid var(--rf-line, #dbe4ef);
}

#head-banner .hero-content {
  min-height: 300px;
  padding: 48px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #edf6ff 100%);
  color: var(--rf-ink, #1f2933);
  text-align: left;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
}

#head-banner .hero-content h1 {
  color: var(--rf-blue-dark, #153f73);
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0;
}

#head-banner .hero-content p {
  color: var(--rf-muted, #64748b);
  max-width: 720px;
  font-size: 17px;
}

.cta-buttons {
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-button {
  border-radius: 999px;
  box-shadow: none;
  border: 1px solid var(--rf-line, #dbe4ef);
  background: #fff;
  color: var(--rf-blue-dark, #153f73);
}

.repair-first-hub {
  max-width: 1120px;
  margin: 22px auto 28px;
  padding: 0 20px;
}

.repair-first-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--rf-line, #dbe4ef);
  border-radius: 14px;
}

.repair-eyebrow {
  margin: 0 0 8px;
  color: var(--rf-blue, #1f5fa8);
  font-size: 13px;
  font-weight: 700;
}

.repair-first-copy h2 {
  margin: 0 0 8px;
  color: var(--rf-ink, #1f2933);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
}

.repair-first-copy p {
  margin: 0;
  color: var(--rf-muted, #64748b);
  line-height: 1.8;
}

.repair-first-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.repair-primary,
.repair-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.repair-primary {
  background: var(--rf-orange, #e87722);
  color: #fff;
}

.repair-secondary {
  color: var(--rf-blue-dark, #153f73);
  border: 1px solid var(--rf-line, #dbe4ef);
  background: #fff;
}

.repair-finder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.repair-card {
  display: block;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--rf-line, #dbe4ef);
  border-radius: 12px;
  background: #fff;
  color: var(--rf-ink, #1f2933);
  text-decoration: none;
}

.repair-card span {
  display: block;
  font-weight: 800;
  color: var(--rf-blue-dark, #153f73);
  margin-bottom: 8px;
}

.repair-card small {
  color: var(--rf-muted, #64748b);
  line-height: 1.6;
}

.repair-card:hover {
  border-color: #b9cce4;
  box-shadow: var(--rf-shadow, 0 8px 22px rgba(31,95,168,.08));
}

.symptom-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.symptom-strip a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--rf-blue-soft, #eaf3ff);
  color: var(--rf-blue-dark, #153f73);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

#top-page-column {
  max-width: 1120px;
  gap: 22px;
}

.section {
  border: 1px solid var(--rf-line, #dbe4ef);
  border-radius: 12px;
  box-shadow: none;
}

.section-title {
  color: var(--rf-blue-dark, #153f73);
}

@media (max-width: 900px) {
  .repair-first-inner {
    grid-template-columns: 1fr;
  }
  .repair-first-actions {
    justify-content: flex-start;
  }
  .repair-finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #head-banner .hero-content {
    min-height: auto;
    padding: 32px 18px;
  }
  .repair-first-hub {
    padding: 0 12px;
  }
  .repair-first-inner {
    padding: 18px;
  }
  .repair-finder-grid {
    grid-template-columns: 1fr;
  }
  .repair-primary,
  .repair-secondary {
    width: 100%;
  }
}


/* === Repair First top priority patch === */
.repair-first-hub {
  margin-top: 16px;
  margin-bottom: 18px;
}

#head-banner {
  margin-top: 0;
}

@media (max-width: 520px) {
  .repair-first-hub {
    margin: 10px auto 14px;
  }
  .repair-first-inner {
    padding: 14px;
    gap: 12px;
  }
  .repair-first-copy h2 {
    font-size: 21px;
    line-height: 1.35;
  }
  .repair-first-copy p {
    font-size: 13px;
    line-height: 1.65;
  }
  .repair-first-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .repair-primary,
  .repair-secondary {
    width: auto;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }
  .repair-finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .repair-card {
    min-height: 82px;
    padding: 12px;
  }
  .repair-card span {
    margin-bottom: 4px;
    font-size: 13px;
  }
  .repair-card small {
    font-size: 11px;
    line-height: 1.45;
  }
  .symptom-strip {
    gap: 6px;
    margin-top: 10px;
  }
  .symptom-strip a {
    padding: 7px 9px;
    font-size: 12px;
  }
}


/* === Repair First top gap trim === */
#wrap-inside {
  padding-top: 0;
}

#main #topic-path:empty,
#main #topic-path:not(:has(a)):not(:has(span)) {
  display: none;
}

.repair-first-hub {
  margin-top: 0;
}


/* === Repair First counter sample renewal === */
.repair-counter.repair-first-hub {
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid var(--rf-line, #dbe4ef);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}

.repair-counter-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, .95fr);
  gap: 22px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid var(--rf-line, #dbe4ef);
}

.repair-counter-copy h1 {
  margin: 0;
  color: var(--rf-blue-dark, #153f73);
  font-size: 31px;
  line-height: 1.34;
  letter-spacing: 0;
}

.repair-counter-lead {
  margin: 14px 0 0;
  color: #42526b;
  font-size: 15px;
  line-height: 1.75;
}

.repair-counter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.repair-counter .repair-primary,
.repair-counter .repair-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.repair-counter .repair-primary {
  background: var(--rf-orange, #e87722);
  color: #fff;
}

.repair-counter .repair-secondary {
  border: 1px solid var(--rf-line, #dbe4ef);
  color: var(--rf-blue-dark, #153f73);
  background: #fff;
}

.repair-machine-finder {
  align-self: start;
  background: #f7fbff;
  border: 1px solid var(--rf-line, #dbe4ef);
  border-radius: 10px;
  padding: 18px;
}

.repair-finder-title {
  margin: 0 0 12px;
  color: var(--rf-blue-dark, #153f73);
  font-size: 15px;
  font-weight: 900;
}

.repair-machine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.repair-machine-grid a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--rf-line, #dbe4ef);
  border-radius: 8px;
  background: #fff;
  color: var(--rf-blue-dark, #153f73);
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.repair-symptom-panel {
  padding: 22px 28px 28px;
}

.repair-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.repair-section-title h2 {
  margin: 0;
  color: var(--rf-blue-dark, #153f73);
  font-size: 20px;
  line-height: 1.35;
}

.repair-section-title small {
  color: var(--rf-muted, #64748b);
  font-weight: 700;
}

.repair-symptom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.repair-symptom-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--rf-line, #dbe4ef);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.repair-symptom-card:hover {
  border-color: #9db9d8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(21, 63, 115, .08);
}

.repair-symptom-card strong {
  display: block;
  color: var(--rf-blue-dark, #153f73);
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.repair-symptom-card em {
  display: block;
  color: var(--rf-muted, #64748b);
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
}

.repair-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.repair-flow-step {
  padding: 14px;
  border: 1px solid var(--rf-line, #dbe4ef);
  border-radius: 8px;
  background: #f9fbfe;
  color: #34445b;
  font-size: 13px;
  font-weight: 700;
}

.repair-flow-step b {
  display: block;
  color: var(--rf-blue, #1e6bb8);
  margin-bottom: 2px;
}

.repair-flow-step span {
  display: block;
}

#head-banner {
  opacity: .96;
}

@media (max-width: 900px) {
  .repair-counter-head {
    grid-template-columns: 1fr;
  }
  .repair-symptom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .repair-counter.repair-first-hub {
    margin-bottom: 14px;
  }
  .repair-counter-head,
  .repair-symptom-panel {
    padding: 18px;
  }
  .repair-counter-copy h1 {
    font-size: 25px;
  }
  .repair-counter-lead {
    font-size: 13px;
  }
  .repair-machine-grid,
  .repair-symptom-grid,
  .repair-flow {
    grid-template-columns: 1fr;
  }
  .repair-section-title {
    display: block;
  }
  .repair-section-title small {
    display: block;
    margin-top: 3px;
  }
  .repair-counter .repair-primary,
  .repair-counter .repair-secondary {
    flex: 1 1 140px;
    min-height: 42px;
    padding: 0 12px;
  }
}


/* === Repair First counter mobile density === */
@media (max-width: 520px) {
  .repair-counter-head,
  .repair-symptom-panel {
    padding: 14px;
  }
  .repair-counter-copy h1 {
    font-size: 23px;
    line-height: 1.34;
  }
  .repair-counter-lead {
    margin-top: 10px;
    line-height: 1.65;
  }
  .repair-counter-actions {
    margin-top: 14px;
  }
  .repair-machine-finder {
    padding: 14px;
  }
  .repair-machine-grid,
  .repair-symptom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .repair-machine-grid a {
    min-height: 40px;
    padding: 0 8px;
    font-size: 12px;
  }
  .repair-symptom-card {
    min-height: 98px;
    padding: 12px;
  }
  .repair-symptom-card strong {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .repair-symptom-card em {
    font-size: 11px;
    line-height: 1.45;
  }
  .repair-flow {
    display: none;
  }
}


/* === Repair First news heading clean === */
#news .section-title-news {
  justify-content: flex-start;
  gap: 0;
  padding-left: 12px;
  border-left: 4px solid var(--rf-blue, #1e6bb8);
}

#news .section-title-news::before,
#news .section-title-news::after {
  display: none;
}

#news .section-title-news .title-text {
  color: var(--rf-blue-dark, #153f73);
}


/* === Repair First section heading clean === */
#top-page-column .section-title-clean,
#news .section-title-news {
  justify-content: flex-start;
  gap: 0;
  padding-left: 12px;
  border-left: 4px solid var(--rf-blue, #1e6bb8);
}

#top-page-column .section-title-clean::before,
#top-page-column .section-title-clean::after,
#news .section-title-news::before,
#news .section-title-news::after {
  display: none;
}

#top-page-column .section-title-clean .title-text,
#news .section-title-news .title-text {
  color: var(--rf-blue-dark, #153f73);
}

/* Repair First top ranking restrained renewal */
#toppage-ranking {
  background: #fff !important;
  color: var(--rf-ink, #1f2933) !important;
  border: 1px solid var(--rf-line, #dbe4ef) !important;
  border-radius: 10px;
  box-shadow: none;
  overflow: visible;
}

#toppage-ranking::before,
#toppage-ranking .item-box::before,
#toppage-ranking .item-overlay {
  content: none !important;
  display: none !important;
  animation: none !important;
}

#toppage-ranking .section-title {
  color: var(--rf-blue-dark, #153f73) !important;
  border-bottom: 2px solid #2b8fd8 !important;
  padding-left: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: auto;
}

#toppage-ranking .section-title::before {
  background: var(--rf-blue, #1f5fa8) !important;
}

#toppage-ranking .section-title::after {
  background: var(--rf-orange, #e87722) !important;
}

#toppage-ranking .ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: auto;
}

#toppage-ranking .item-box {
  display: grid;
  grid-template-columns: 42px 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 14px 18px;
  background: #fff !important;
  border: 1px solid var(--rf-line, #dbe4ef) !important;
  border-radius: 8px;
  box-shadow: none !important;
  color: var(--rf-ink, #1f2933) !important;
  text-align: left;
  overflow: visible;
  backdrop-filter: none !important;
  transform: none !important;
}

#toppage-ranking .item-box:hover {
  border-color: #b8cbe2 !important;
  box-shadow: 0 4px 12px rgba(31, 95, 168, .08) !important;
  transform: none !important;
}

#toppage-ranking .ranking-number {
  position: static !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 7px;
  background: var(--rf-blue-soft, #eaf3ff) !important;
  border: 1px solid #cfe0f3 !important;
  color: var(--rf-blue-dark, #153f73) !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 800;
}

#toppage-ranking .link-image {
  width: 96px;
  height: 96px;
  margin: 0;
  border-radius: 6px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#toppage-ranking .link-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
  transform: none !important;
}

#toppage-ranking .item-content {
  min-width: 0;
}

#toppage-ranking .item-name {
  color: var(--rf-ink, #1f2933) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#toppage-ranking .item-price {
  margin-top: 6px;
}

#toppage-ranking .sale-price {
  color: var(--rf-orange, #e87722) !important;
  font-size: 17px;
  font-weight: 800;
}

#toppage-ranking .regular-price {
  color: var(--rf-muted, #64748b) !important;
}

@media (max-width: 768px) {
  #toppage-ranking .item-box {
    grid-template-columns: 34px 72px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
    padding: 12px;
  }

  #toppage-ranking .ranking-number {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px;
  }

  #toppage-ranking .link-image {
    width: 72px;
    height: 72px;
  }

  #toppage-ranking .link-image img {
    max-width: 72px;
    max-height: 72px;
  }

  #toppage-ranking .item-name {
    font-size: 13px;
  }

  #toppage-ranking .sale-price {
    font-size: 15px;
  }
}

/* Center top slideshow image inside banner frame */
#head-banner .slider,
#head-banner .bx-wrapper,
#head-banner .bx-viewport {
  margin-left: auto;
  margin-right: auto;
}
#head-banner #slider li,
#head-banner .bxslider li {
  text-align: center;
}
#head-banner #slider img,
#head-banner .slider img,
#head-banner .bx-wrapper img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
