/**
 * TC Electronic - Main Stylesheet
 * Design: Clean Modern (案B)
 * Brand Color: Pantone 2767 C (#182A47)
 * 
 * Update: Base restored, Footer & Buttons fixed.
 */

/* ==========================================================================
   Reset & Base (Original)
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --tc-navy: #182A47;
    --tc-navy-light: #2D4A6F;
    --tc-navy-dark: #0F1C2E;
    --tc-accent: #3B82F6;
    
    /* Neutral Colors */
    --tc-bg: #FFFFFF;
    --tc-bg-alt: #F8FAFC;
    --tc-text: #1E293B;
    --tc-text-muted: #64748B;
    --tc-border: #E2E8F0;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 80px;
    --space-2xl: 120px;
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.7;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.12);
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--tc-bg);
    color: var(--tc-text);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 画像の基本設定（フッターでリセットします） */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-2xl) 0;
}

.section--alt {
    background-color: var(--tc-bg-alt);
}

.section--navy {
    background-color: var(--tc-navy);
    color: white;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--tc-navy);
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
    color: white;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -3px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -1px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.text-muted {
    color: var(--tc-text-muted);
}

.text-accent {
    color: var(--tc-accent);
}

/* ==========================================================================
   Buttons (文字色修正版)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.2;
}

/* --- ネイビー背景・白文字 --- */
.btn--navy {
    background-color: var(--tc-navy);
    color: white;
    border-color: var(--tc-navy);
}

.btn--navy:hover {
    background-color: var(--tc-navy-light);
    border-color: var(--tc-navy-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(24, 42, 71, 0.2);
    color: white; /* ホバー時も白 */
}

/* --- 透明背景・ネイビー文字 (枠線あり) --- */
.btn--ghost {
    background-color: transparent;
    color: var(--tc-navy); /* ここを明示 */
    border-color: var(--tc-border);
}

.btn--ghost:hover {
    border-color: var(--tc-navy);
    background-color: var(--tc-navy);
    color: white; /* ホバーで反転 */
}

/* --- 白背景・ネイビー文字 --- */
.btn--white {
    background-color: white;
    color: var(--tc-navy);
    border-color: white;
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Section Header
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-header__content h2 {
    margin-bottom: 10px;
}

.section-header__content p {
    color: var(--tc-text-muted);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tc-navy);
    font-weight: 600;
    font-size: 14px;
    transition: gap var(--transition-normal);
}

.view-all:hover {
    gap: 15px;
}

/* ==========================================================================
   Hero Section (Updated with Logo)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--tc-navy) 0%, var(--tc-navy-light) 100%);
    z-index: -1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(24, 42, 71, 0.7) 0%,
        rgba(24, 42, 71, 0.5) 50%,
        rgba(24, 42, 71, 0.8) 100%
    );
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Logo Addition */
.hero__brand {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.hero__logo {
    max-width: 800px; 
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Buttons */
.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero内: 白ボタン */
.hero .btn--primary {
    background: #fff;
    color: var(--tc-navy);
    border: 2px solid #fff;
}
.hero .btn--primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hero内: 透明アウトライン（文字色白） */
.hero .btn--outline {
    background: transparent;
    color: #fff; /* 強制的に白 */
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.hero .btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff; /* ホバー時も白 */
    transform: translateY(-3px);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.5);
    }
}

.hero--gradient {
    background: linear-gradient(
        135deg,
        var(--tc-navy) 0%,
        var(--tc-navy-light) 50%,
        #1a3a5c 100%
    );
}

.hero--gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ==========================================================================
   Categories Section (Updated)
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background-color: white;
    padding: 0; 
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--tc-border);
    transition: all var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    border-color: var(--tc-navy);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card__visual {
    width: 100%;
    height: 160px;
    background-color: var(--tc-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--tc-bg-alt);
}

.category-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .category-card__visual img {
    transform: scale(1.05);
}

.category-emoji {
    font-size: 48px;
}

.category-card__body {
    padding: 20px;
    flex-grow: 1;
}

.category-card__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--tc-navy);
}

.category-card__description {
    color: var(--tc-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    /* 背景色を白に指定 */
    background-color: #ffffff; 
    
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    
    /* 影を少し強めにして浮き上がらせる */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
    
    /* 枠線を追加して輪郭をはっきりさせる（お好みで） */
    border: 1px solid rgba(0, 0, 0, 0.05);
    
    /* クリック用の設定 */
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-8px);
    /* ホバー時の影をさらに強調 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* 画像エリアの背景は白のまま、または薄いグレーにしてメリハリをつける */
.product-card__image {
    height: 260px;
    background-color: #ffffff; /* 画像背景も白 */
    /* または薄いグレーにするなら: background-color: #f8fafc; */
    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    
    /* 画像とテキストエリアの境界線（画像背景が白の場合に有効） */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__image-placeholder {
    color: var(--tc-text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-card__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--tc-navy);
    color: white;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    text-transform: uppercase;
}

.product-card__body {
    padding: 30px;
}

.product-card__category {
    color: var(--tc-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-card__title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-card__description {
    color: var(--tc-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tc-navy);
    font-weight: 600;
    font-size: 13px;
    transition: gap var(--transition-normal);
}

.product-card__link:hover {
    gap: 15px;
}

/* ==========================================================================
   TonePrint Section
   ========================================================================== */
.toneprint__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.toneprint__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 25px;
    line-height: 1.1;
}

.toneprint__title span {
    color: var(--tc-accent);
}

.toneprint__description {
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.toneprint__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-item__icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.feature-item__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.feature-item__description {
    font-size: 0.85rem;
    opacity: 0.7;
}

.toneprint__visual {
    height: 450px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.toneprint__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toneprint__visual-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    text-align: center;
}

.cta__title {
    margin-bottom: 15px;
}

.cta__description {
    color: var(--tc-text-muted);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.product-breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--tc-text-muted);
}
.product-breadcrumb a {
    color: var(--tc-navy);
}
.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-hero__visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: var(--tc-bg-alt);
}

.product-placeholder-lg {
    width: 100%;
    height: 400px;
    background-color: var(--tc-bg-alt);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-text-muted);
    font-size: 24px;
    font-weight: 700;
}

.product-category-label {
    display: inline-block;
    color: var(--tc-accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--tc-navy);
    font-weight: 700;
}

.product-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--tc-text);
    margin-bottom: 20px;
}

.product-body-text {
    color: var(--tc-text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-actions {
    display: flex;
    gap: 15px;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.detail-block h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tc-bg-alt);
    color: var(--tc-navy);
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tc-accent);
    font-weight: bold;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table th, 
.spec-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--tc-border);
    font-size: 0.95rem;
}
.spec-table th {
    text-align: left;
    width: 40%;
    color: var(--tc-navy);
    font-weight: 600;
}
.spec-table td {
    color: var(--tc-text-muted);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__visual {
        display: none;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
    .btn-group {
        justify-content: center;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .toneprint__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 900px) {
    .product-hero__grid,
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 60px;
        --space-2xl: 80px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero {
        min-height: 100svh;
    }
    .hero__content {
        padding: 30px 20px;
    }
    .hero__logo {
        max-width: 280px; 
    }
    .hero__brand {
        margin-bottom: 25px;
    }
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-card__visual {
        height: 180px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .toneprint__features {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Footer Protection (Surgical Fix)
   メインのデザインを崩さず、フッターだけを厳密にリセットします
   ========================================================================== */

/* 画像のブロック表示をフッターのみ解除 */
footer img {
    display: inline-block;
    max-width: none;
    height: auto;
    margin: 0;
}

/* box-sizingを元の状態に戻す（hibino.css準拠） */
footer * {
    box-sizing: content-box; 
}

/* style.css の Products Section 付近に追加・修正 */

/* 1. カード本体に position: relative を指定（基準点にするため） */
.product-card {
    /* 既存のスタイル */
    background-color: var(--tc-bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    
    /* ★追加: ここを基準にします */
    position: relative; 
}

/* 2. メインのリンク（画像部分など）に拡張エリアを設定 */
.product-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 他のコンテンツより手前に */
    cursor: pointer;
}

/* 
   注意: もしカードの中に「別のリンク（カテゴリ名など）」があり、
   それを個別にクリックさせたい場合は、そのリンクのz-indexを上げる必要があります。
*/
.product-card__category, 
.product-card__body a {
    position: relative;
    z-index: 2; /* 全体リンクより上に配置 */
}

/* style.css */

/* product-card 自体がリンクになったのでスタイルをリセット */
a.product-card {
    display: flex;       /* レイアウト崩れ防止 */
    flex-direction: column;
    text-decoration: none; /* 下線を消す */
    color: inherit;      /* 文字色を継承（黒色などに戻す） */
    height: 100%;        /* グリッド内での高さを揃える */
}

/* タイトルなども色が変わらないように念のため指定 */
a.product-card h3 {
    color: var(--tc-navy);
}

/* 画像部分のホバーエフェクトが効くように構造変化に対応 */
/* 以前は .product-card:hover でしたが、念のため確認 */
a.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* =========================================
   TC Electronic Brand Navigation (Sticky)
   ========================================= */
.tc-brand-nav {
    background-color: #111111;
    border-bottom: 1px solid #2d2d2d;
    font-family: var(--font-primary);
    
    /* ▼▼▼ ここがポイント：Sticky配置 ▼▼▼ */
    position: sticky;
    position: -webkit-sticky; /* Safari用 */
    
    /* 共通ヘッダー(80px)の下にピタッと止まる設定 */
    top: 80px; 
    
    /* 重なり順：ヘッダーより下、他のコンテンツより上 */
    z-index: 990; 
    
    width: 100%;
    
    /* ▼▼▼ 背景を強制的に画面端まで広げる魔法（念のため） ▼▼▼ */
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 100vw #111111;
    /* クリップ（はみ出し防止）を解除 */
    clip-path: inset(0 -100vw 0 -100vw); 
}

/* スマホ対応 */
/* =========================================
   Mobile Optimization (スマホ調整決定版)
   ========================================= */
@media (max-width: 768px) {
    /* 1. ナビ自体の高さを調整 */
    .tc-brand-nav {
        /* スマホのヘッダーの高さに合わせる（ズレる場合は数値を変更） */
        top: 60px; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* 影を少し控えめに */
    }

    /* 2. コンテナの余白を削除（画面端までスクロールさせるため） */
    .tc-brand-nav__container {
        padding: 0; /* 左右の余白をなくす */
        width: 100%;
        max-width: 100%;
    }

    /* 3. リストの設定（ここが重要） */
    .tc-brand-nav__list {
        display: flex;
        gap: 20px; /* 項目同士の間隔 */
        
        /* 最初の文字が左端に張り付かないように余白を入れる */
        padding: 0 20px; 
        
        /* スクロール設定 */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* iPhoneで慣性スクロールを効かせる */
        
        /* 高さ調整 */
        align-items: center;
        height: 54px; /* ナビの高さ固定 */
    }

    /* 4. 各リンクの文字サイズ調整 */
    .tc-brand-nav__link {
        font-size: 11px; /* 少し小さくして表示数を増やす */
        padding: 0;      /* 上下の余白をなくし、flex配置で中央にする */
        line-height: 54px; /* 高さの中央に配置 */
        white-space: nowrap; /* 改行禁止 */
    }
    
    /* 下線の位置調整 */
    .tc-brand-nav__link::after {
        bottom: 12px; /* 下線を文字に近づける */
    }

    /* 5. STOREボタンの特別調整 */
    .tc-brand-nav__item--store {
        /* スマホでは「右寄せ」を解除して、リストの最後に並べる */
        margin-left: 0; 
        
        /* 右端に見切れ防止の余白を作る */
        padding-right: 20px; 
        
        display: flex;
        align-items: center;
        height: 100%;
    }

    .tc-brand-nav__item--store .tc-brand-nav__link {
        line-height: 1.5; /* ボタン内の行間リセット */
        padding: 6px 14px;
        font-size: 10px;
        margin: 0;
    }
    
    /* 6. スクロールバーを完全に消す */
    .tc-brand-nav__list::-webkit-scrollbar {
        display: none;
        height: 0;
    }
}

/* --- 以下は共通設定（そのまま） --- */
.tc-brand-nav__container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 20px;
}
.tc-brand-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 30px;
    scrollbar-width: none;
}
.tc-brand-nav__list::-webkit-scrollbar { display: none; }
.tc-brand-nav__item { flex: 0 0 auto; }

.tc-brand-nav__link {
    display: block;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 18px 0;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
}
.tc-brand-nav__link:hover, .tc-brand-nav__link.is-active { color: #ffffff; }
.tc-brand-nav__link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background-color: #e60012; transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tc-brand-nav__link.is-active::after { width: 100%; }
.tc-brand-nav__link:hover::after { width: 100%; opacity: 0.7; }

/* Store Link */
.tc-brand-nav__item--store { margin-left: auto; display: flex; align-items: center; }
.tc-brand-nav__item--store .tc-brand-nav__link {
    color: #ffffff; background-color: #333333; padding: 6px 18px; margin: 0;
    border-radius: 4px; font-size: 12px; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 6px;
}
.tc-brand-nav__item--store .tc-brand-nav__link:hover { background-color: #e60012; transform: translateY(-1px); }
.tc-brand-nav__item--store .tc-brand-nav__link::after { display: none; }

/* モバイル微調整 */
@media (max-width: 768px) {
    .tc-brand-nav__container { padding: 0 20px; }
    .tc-brand-nav__list { gap: 20px; }
    .tc-brand-nav__item--store { margin-left: 0; padding-right: 20px; }
}