@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark: #1a1a1a;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    
    --focus-color: #0066cc;
    --focus-offset: 2px;
}

::selection {
    background: var(--black);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: var(--focus-offset);
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: all 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: inline-block;
    height: 30px;
}

.logo img {
    height: 30px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #c9302c;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.prim-subheader {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.prim-subheader-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.prim-subheader-brand {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.prim-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.prim-logo-img {
    height: 30px;
    width: auto;
    max-width: 180px;
    display: block;
}

.prim-logo-sub {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.prim-horizontal-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.prim-nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.prim-nav-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all var(--transition-fast);
    padding: 0.5rem 1rem;
    position: relative;
    white-space: nowrap;
}

.prim-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width var(--transition-fast);
}

.prim-nav-link:hover,
.prim-nav-link.active {
    color: var(--black);
}

.prim-nav-link:hover::after,
.prim-nav-link.active::after {
    width: 80%;
}

.prim-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    width: 100%;
    padding: 1.5rem 2rem;
    margin-top: 70px;
}

.prim-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prim-nav {
    text-align: right;
}

.prim-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.prim-back-button:hover {
    background: var(--black);
    color: var(--white);
}

.prim-main-content,
.prim-main-content-full,
.prim-main {
    margin-left: 0;
    min-height: 100vh;
    padding-top: 0;
    margin-top: 0;
}

.prim-hero {
    height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--white);
}

.prim-hero-content {
    text-align: center;
    padding: 0 var(--spacing-lg);
}

.prim-hero-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.2em;
    animation: fadeIn 0.8s ease;
}

.prim-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--black);
    animation: fadeIn 0.8s ease 0.2s both;
    will-change: transform, opacity;
}

.prim-hero-title strong {
    font-weight: 600;
}

.prim-hero-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease 0.4s both;
    line-height: 1.8;
    font-weight: 300;
    will-change: transform, opacity;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prim-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

.prim-scroll-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.prim-scroll-line::before,
.prim-scroll-line::after {
    content: '';
    width: 16px;
    height: 16px;
    border-left: 3px solid var(--black);
    border-bottom: 3px solid var(--black);
    transform: rotate(-45deg);
    animation: scrollArrow 2s ease-in-out infinite;
}

.prim-scroll-line::after {
    animation-delay: 0.2s;
}

@keyframes scrollArrow {
    0% { 
        opacity: 0; 
        transform: translateY(-10px) rotate(-45deg); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(0) rotate(-45deg);
    }
    100% { 
        opacity: 0; 
        transform: translateY(10px) rotate(-45deg); 
    }
}

.prim-product-hero {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.prim-product-image-section {
    position: relative;
}

.prim-main-image {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1 / 1;
    background: var(--light-gray);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.prim-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    animation: primFadeIn 0.3s ease-in-out;
}

@keyframes primFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.prim-image-gallery {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.prim-thumbnail {
    width: 100px;
    height: 100px;
    background: var(--white);
    border: 2px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prim-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.prim-thumbnail:hover {
    border-color: var(--gray);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prim-thumbnail.active {
    border-color: var(--black);
    border-width: 2px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.prim-thumbnail.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--black);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.prim-product-info-section {
    padding: 2rem 0;
}

.prim-product-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--black);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-fast);
}

.prim-product-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
    color: var(--black);
}

.prim-product-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.prim-product-notice {
    color: #ff0000;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 1.5rem 0;
}

.prim-simple-notice {
    background: #fff3f3;
    border-left: 3px solid #ff0000;
    padding: 0.8rem 1rem;
    margin: 1.5rem 0;
}

.prim-notice-text {
    color: #ff0000;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.prim-product-lead {
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 300;
}

.prim-product-description {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.prim-product-section {
    padding: var(--spacing-2xl) 0;
    position: relative;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.prim-product-section:nth-child(even) {
    background: var(--light-gray);
}

.prim-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.prim-product-section:nth-child(odd) .prim-product-container {
    direction: rtl;
}

.prim-product-section:nth-child(odd) .prim-product-container > * {
    direction: ltr;
}

.prim-product-image-area {
    position: relative;
    height: 500px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
    border-radius: 4px;
}

.prim-product-section:nth-child(even) .prim-product-image-area {
    background: var(--white);
}

.prim-product-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.prim-product-content {
    padding: var(--spacing-md) 0;
}

.prim-product-features {
    margin-bottom: var(--spacing-lg);
}

.prim-product-features div {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prim-product-features div:first-child {
    border-top: 1px solid var(--border);
}

.prim-feature-name {
    color: var(--gray);
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0;
}

.prim-feature-value {
    font-weight: 500;
    color: var(--black);
    font-size: 0.9rem;
    margin: 0;
    text-align: right;
}

.prim-product-meta {
    margin-top: var(--spacing-md);
}

.prim-product-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.prim-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    will-change: transform;
}

.prim-product-image:hover {
    transform: scale(1.05);
}

.prim-feature-models {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.prim-model-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--light-gray);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 2px;
    text-transform: none;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
}

.prim-model-badge:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    cursor: default;
}

.prim-key-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.prim-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.prim-feature-icon {
    width: 24px;
    height: 24px;
    border: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.prim-feature-text {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.5;
}

.prim-btn {
    padding: 0.9rem 2rem;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.prim-btn:hover,
.prim-btn:focus-visible {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.prim-btn:active {
    transform: translateY(0);
}

.prim-btn-primary {
    background: var(--black);
    color: var(--white);
}

.prim-btn-primary:hover,
.prim-btn-primary:focus-visible {
    background: var(--white);
    color: var(--black);
}

.prim-section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.prim-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.prim-section-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--black);
}

.prim-section-subtitle {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 300;
}

.prim-details-section {
    background: var(--light-gray);
    padding: 5rem 2rem;
}

.prim-detail-content {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--border);
}

.prim-detail-text h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.prim-detail-text p {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.prim-features-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.prim-features-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.prim-feature-card {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.prim-feature-number {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.prim-feature-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--black);
}

.prim-feature-description {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

.prim-usage-examples {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.prim-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.prim-example-card {
    text-align: center;
}

.prim-example-image {
    height: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prim-example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.prim-example-card:hover .prim-example-image img {
    transform: scale(1.05);
}

.prim-example-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--black);
    line-height: 1.4;
}

.prim-example-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
    text-align: left;
}

.prim-usage-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.prim-usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.prim-usage-card {
    background: var(--light-gray);
    padding: 2rem;
    border: 1px solid var(--border);
}

.prim-usage-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--black);
}

.prim-usage-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.9rem;
}

.prim-benefits-section {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.prim-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.prim-benefit-card {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.prim-benefit-card:hover {
    border-color: var(--black);
    transform: translateY(-5px);
}

.prim-benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--black);
}

.prim-benefit-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.9rem;
}

.prim-specs-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.prim-specs-complete-box {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.prim-specs-details-area {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prim-dimension-diagrams-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prim-specs-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-align: center;
}

.prim-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
}

.prim-specs-list li {
    padding: 0.6rem 0;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.prim-bullet {
    color: var(--black);
    font-weight: bold;
    margin: 0 0.8rem;
    display: inline-block;
}

.prim-diagrams-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 1.5rem;
    width: 100%;
}

.prim-diagram-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
}

.prim-diagram-image {
    width: 300px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prim-diagram-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px;
    background: var(--white);
}

.prim-diagram-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.prim-products-lineup-section {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.prim-profile-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.prim-profile-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.prim-profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.prim-profile-card:hover {
    border-color: var(--black);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.prim-profile-icon-large {
    width: 100px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prim-profile-svg {
    width: 100%;
    height: 100%;
    color: var(--black);
}

.prim-profile-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.prim-profile-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.prim-profile-features {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.prim-profile-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.prim-profile-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--black);
}

.prim-models-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.prim-models-table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.prim-models-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.prim-models-table thead {
    background: var(--black);
    color: var(--white);
}

.prim-models-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
}

.prim-models-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--gray);
}

.prim-model-group-header td {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.prim-models-table tbody tr:hover:not(.prim-model-group-header) {
    background: #f9f9f9;
}

.prim-models-table td strong {
    color: var(--dark);
    font-weight: 600;
}

.prim-flex-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
}

.prim-flex-item {
    flex: 0 1 calc(16.666% - 1.5rem);
    min-width: 140px;
    text-align: center;
}

.prim-flex-item img {
    width: 100%;
    height: auto;
    display: block;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.prim-zoomable {
    cursor: pointer;
}

.prim-zoomable:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.prim-flex-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0 0;
}

.prim-product-code-section {
    padding: 5rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.prim-code-table-container {
    max-width: 600px;
    margin: 3rem auto 0;
}

.prim-code-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prim-code-table thead {
    background: var(--light-gray);
}

.prim-code-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    letter-spacing: 0.02em;
}

.prim-code-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--gray);
}

.prim-code-table tbody tr:last-child td {
    border-bottom: none;
}

.prim-code-table tbody tr {
    transition: background 0.2s ease;
}

.prim-code-table tbody tr:hover {
    background: var(--light-gray);
}

.prim-image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

.prim-image-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prim-image-overlay img {
    max-width: 80%;
    max-height: 80vh;
    width: auto;
    height: auto;
    background: white;
    padding: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

footer {
    background: #1a1a1a;
    color: white;
    padding: 0;
}

.footer-main {
    padding: 60px 5% 50px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo-section {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #333;
}

.footer-logo-section img {
    height: 35px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-logo-section p {
    color: #999;
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 25px;
    color: #c9302c;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 15px;
}

.footer-column a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-column a:hover {
    color: white;
}

.footer-column a span {
    color: #c9302c;
    margin-right: 8px;
}

.footer-column a:hover span {
    transform: translateX(3px);
    transition: transform 0.3s;
}

.footer-bottom {
    background: #0f0f0f;
    padding: 25px 5%;
}

.footer-bottom-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.group-logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.group-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s;
}

.group-logo-wrapper {
    background: white;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
}

.group-logo-link:hover .group-logo-wrapper {
    transform: scale(1.05);
}

.group-logo {
    height: 24px;
    width: auto;
    display: block;
}

.copyright-text {
    color: #666;
    font-size: 13px;
}

.prim-footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.prim-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.prim-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prim-horizontal-nav::-webkit-scrollbar {
    height: 4px;
}

.prim-horizontal-nav::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 2px;
}

.prim-horizontal-nav::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 2px;
}

.prim-horizontal-nav::-webkit-scrollbar-thumb:hover {
    background: var(--dark);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1200px) {
    .prim-flex-item {
        flex: 0 1 calc(20% - 1.5rem);
    }
}

@media (max-width: 1024px) {
    .prim-subheader-container {
        padding: 0.75rem 5%;
    }

    .prim-nav-list {
        gap: 1.5rem;
    }

    .prim-nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .prim-product-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .prim-product-section:nth-child(odd) .prim-product-container {
        direction: ltr;
    }

    .prim-product-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .prim-features-detail {
        grid-template-columns: 1fr;
    }

    .prim-examples-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prim-usage-grid,
    .prim-benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .prim-flex-item {
        flex: 0 1 calc(33.333% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 20px;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .prim-subheader {
        top: 60px;
    }

    .prim-subheader-container {
        padding: 0.75rem 5%;
        flex-direction: column;
        gap: 1rem;
    }

    .prim-subheader-brand {
        width: 100%;
        justify-content: center;
    }

    .prim-logo-img {
        height: 24px;
        margin-top: 0.5rem;
    }

    .prim-horizontal-nav {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--gray) var(--light-gray);
    }

    .prim-nav-list {
        gap: 0.5rem;
        padding: 0 0.5rem;
        min-width: max-content;
    }

    .prim-nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .prim-header {
        padding: 1rem;
    }
    
    .prim-header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        min-height: 50px;
        align-items: center;
    }

    .prim-logo {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .prim-nav {
        text-align: right;
        flex-shrink: 0;
    }

    .prim-back-button {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .prim-hero {
        height: calc(100vh - 130px);
    }

    :root {
        --spacing-2xl: 4rem;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    .prim-hero-title {
        font-size: 2rem;
    }

    .prim-product-title {
        font-size: 1.8rem;
    }

    .prim-product-container {
        padding: 0 var(--spacing-md);
    }

    .prim-product-cta,
    .prim-btn {
        width: 100%;
        text-align: center;
    }

    .prim-product-cta {
        flex-direction: column;
    }
    
    .prim-product-image-area {
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: 300px;
    }

    .prim-feature-models {
        justify-content: flex-start;
    }
    
    .prim-model-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .prim-key-features {
        grid-template-columns: 1fr;
    }

    .prim-diagrams-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .prim-diagram-image {
        width: 250px;
        height: 150px;
    }

    .prim-main-image {
        max-width: 400px;
    }

    .prim-profile-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .prim-models-table {
        font-size: 0.8rem;
    }
    
    .prim-models-table th,
    .prim-models-table td {
        padding: 0.6rem 0.5rem;
    }
    
    .prim-flex-box {
        gap: 1rem;
    }
    
    .prim-flex-item {
        flex: 0 1 calc(33.333% - 1rem);
        min-width: 120px;
    }
    
    .prim-image-overlay img {
        max-width: 90%;
        max-height: 70vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-column ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-column a {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .prim-subheader-brand {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .prim-logo-img {
        height: 22px;
        margin-top: 0.75rem;
    }

    .prim-logo {
        font-size: 1rem;
    }

    .prim-logo-sub {
        font-size: 0.65rem;
    }

    .prim-nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .prim-hero-title {
        font-size: 1.75rem;
    }

    .prim-product-section {
        padding: var(--spacing-lg) 0;
    }

    .prim-product-title {
        font-size: 1.5rem;
    }

    .prim-product-subtitle {
        font-size: 0.9rem;
    }

    .prim-product-description {
        font-size: 0.85rem;
    }

    .prim-feature-name,
    .prim-feature-value {
        font-size: 0.85rem;
    }

    .prim-product-image-area {
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: 250px;
    }

    .prim-header-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .prim-logo {
        font-size: 1.1rem;
    }

    .prim-nav {
        text-align: center;
        width: 100%;
    }

    .prim-back-button {
        width: 100%;
        justify-content: center;
    }

    .prim-main-image {
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }

    .prim-section-title {
        font-size: 1.5rem;
    }

    .prim-code-table {
        font-size: 0.85rem;
    }

    .prim-code-table th,
    .prim-code-table td {
        padding: 0.75rem 1rem;
    }

    .prim-flex-box {
        gap: 0.75rem;
    }
    
    .prim-flex-item {
        flex: 0 1 calc(50% - 0.75rem);
        min-width: 100px;
    }
    
    .prim-flex-item h3 {
        font-size: 1rem;
    }

    .footer-logo-section img {
        height: 28px;
    }

    .footer-logo-section p {
        font-size: 13px;
    }

    .footer-column h4 {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

@supports not (aspect-ratio: 16 / 10) {
    @media (max-width: 768px) {
        .prim-product-image-area {
            height: 250px;
        }
    }
    
    @media (max-width: 480px) {
        .prim-product-image-area {
            height: 200px;
        }
    }
}

@media print {
    .prim-subheader,
    .prim-scroll-indicator {
        display: none;
    }
    
    .prim-hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .prim-product-section {
        page-break-inside: avoid;
    }
}
